Wrong type on plant result

This commit is contained in:
斟酌 鵬兄 2015-02-17 14:01:26 +08:00
parent e570b4367b
commit 097c9e160c

View File

@ -101,7 +101,7 @@ Framework.prototype.plantResult = function()
{
if( !( this.result instanceof Buffer ) )
{
this.result = String( this.result );
this.result = new Buffer( this.result + "" );
}
this.HTTP.response.headers["Content-Length"] = this.result.length;