http: bubble up parser errors to ClientRequest
authorBrian White <mscdex@mscdex.net>
Tue, 7 Aug 2012 00:42:13 +0000 (20:42 -0400)
committerBen Noordhuis <info@bnoordhuis.nl>
Sun, 16 Dec 2012 16:25:03 +0000 (17:25 +0100)
commit827b2a9b0b2b938f458a7569bf6c73b6be25ddc7
tree78a5ce0e989f60c19068df9af62b00d6fb1b85d9
parent45cdb0e4c12d8f8e9450174ddd6ddad52a995831
http: bubble up parser errors to ClientRequest

Make parser errors bubble up to the ClientRequest instead of the underlying
net.Socket object.

This is a back-port of commit c78678b from the master branch.

Fixes #3776.
lib/http.js
test/simple/test-http-client-parse-error.js