Misc default value changes

This commit is contained in:
2015-01-06 15:16:35 +08:00
parent e781db308b
commit ca6a88798a
3 changed files with 5 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ Framework.prototype.run = function()
}
Dragonfly.Info(
this.HTTP.request.remoteAddr + " "
( this.HTTP.request.raw.headers[ "x-forwarded-for" ] || this.HTTP.request.remoteAddr ) + " "
+ method + ": " + encodeURI( this.HTTP.request.raw.url )
+ " - " + this.HTTP.request.raw.headers["user-agent"]
, Dragonfly.Visibility.VISIBLE

View File

@@ -9,7 +9,7 @@ var HTTP = function( req, res )
this.response = {
statusCode: 200
, headers: {
"Content-Type": "text/html"
"Content-Type": "text/html; charset=utf-8"
, "Powered-By": "Botanical Framework (Node.js)"
}
, write: function( str ) { _self.response.content = str }