Expose http parse error codes
authorFelix Geisendörfer <felix@debuggable.com>
Sun, 18 Dec 2011 14:55:40 +0000 (15:55 +0100)
committerisaacs <i@izs.me>
Tue, 20 Mar 2012 02:00:16 +0000 (19:00 -0700)
commit18240193ba421695d984c3d73e88de7e1b324e0a
tree9272cc0d8b51c5ff63f04b855975e1733f29ff5e
parent891f9defeb9713d8da9428195ad594a6d3627400
Expose http parse error codes

Currently http parse errors do not expose the error details available
from http_parser. This patch exposes the error code as `err.code`.
src/node_http_parser.cc
test/simple/test-http-client-parse-error.js