Comparing version 0.2.9-2 to 0.2.9-3
@@ -110,8 +110,6 @@ | ||
var code = this.__statusCode || this.statusCode; | ||
// var hh = Object.keys(headers).map(function(k){ | ||
// return [k,headers[k].toString()]; | ||
// }); | ||
var hh = this._header.split('\r\n') | ||
__assert(hh.pop() === '') // remove last CRLF that produces empty string | ||
hh = hh.map(function(kv){return kv.split(':').map(function(s){return s.trim()})}) | ||
headers = headers || { date : new Date().toUTCDate()} | ||
var hh = Object.keys(headers).map(function(k){ | ||
return [k,headers[k].toString()]; | ||
}); | ||
this._header = mp.pack([code,hh]); | ||
@@ -118,0 +116,0 @@ this._headerSent = false; |
{ | ||
"name": "cocaine", | ||
"version": "0.2.9-2", | ||
"version": "0.2.9-3", | ||
"description": "Node.js framework for Cocaine platform", | ||
@@ -5,0 +5,0 @@ |
107290
2218