Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTrent Mick <trentm@gmail.com>2011-07-21 09:42:10 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2011-07-21 16:15:33 +0400
commita8f96d3314f2eb75997a84ea002198ae7d6f6f46 (patch)
tree19b12e353831659fad6f73cc7d78e0b209fc3fae /lib
parentd3d776f97893961bfca597264ced1e7028ebf8af (diff)
http: fix setting ServerResponse.statusCode in writeHead
Fixes #1374.
Diffstat (limited to 'lib')
-rw-r--r--lib/http.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/http.js b/lib/http.js
index b61be65386d..a0297142c5a 100644
--- a/lib/http.js
+++ b/lib/http.js
@@ -798,6 +798,7 @@ ServerResponse.prototype.writeHead = function(statusCode) {
reasonPhrase = STATUS_CODES[statusCode] || 'unknown';
headerIndex = 1;
}
+ this.statusCode = statusCode;
var obj = arguments[headerIndex];