From ca6a88798ac75f93e6b36166f120a446145aba8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Tue, 6 Jan 2015 15:16:35 +0800 Subject: [PATCH] Misc default value changes --- Dragonfly.js | 3 +++ net/WebFrame.js | 2 +- net/http.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dragonfly.js b/Dragonfly.js index 8ff0f28..846ae45 100644 --- a/Dragonfly.js +++ b/Dragonfly.js @@ -28,8 +28,11 @@ function Dragonfly() Dragonfly.currentSphere = 10; Dragonfly.Spheres = { + // Debug THERMO: 30 + // Inspect , STRATO: 20 + // Production , HYDRO: 10 , LITHO: 0 }; diff --git a/net/WebFrame.js b/net/WebFrame.js index 209fe5d..e5c5438 100644 --- a/net/WebFrame.js +++ b/net/WebFrame.js @@ -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 diff --git a/net/http.js b/net/http.js index 80b5189..516c1a9 100644 --- a/net/http.js +++ b/net/http.js @@ -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 }