diff options
author | Trent Mick <trentm@gmail.com> | 2011-07-21 09:42:10 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2011-07-21 16:15:33 +0400 |
commit | a8f96d3314f2eb75997a84ea002198ae7d6f6f46 (patch) | |
tree | 19b12e353831659fad6f73cc7d78e0b209fc3fae /lib | |
parent | d3d776f97893961bfca597264ced1e7028ebf8af (diff) |
http: fix setting ServerResponse.statusCode in writeHead
Fixes #1374.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.js | 1 |
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]; |