diff options
author | Trent Mick <trentm@gmail.com> | 2011-07-20 22:42:10 -0700 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2011-07-21 14:15:33 +0200 |
commit | a8f96d3314f2eb75997a84ea002198ae7d6f6f46 (patch) | |
tree | 19b12e353831659fad6f73cc7d78e0b209fc3fae /lib/http.js | |
parent | d3d776f97893961bfca597264ced1e7028ebf8af (diff) | |
download | node-a8f96d3314f2eb75997a84ea002198ae7d6f6f46.tar.gz |
http: fix setting ServerResponse.statusCode in writeHead
Fixes #1374.
Diffstat (limited to 'lib/http.js')
-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 b61be6538..a0297142c 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]; |