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>
Fri, 24 Aug 2012 15:26:31 +0000 (17:26 +0200)
commitc78678b081d8c37b8bbc616e4cb782cf32645619
treeba8142e9b49375e51d815e83183f28592b50655f
parent1867511400e895989652af33aa4942b446a90151
http: bubble up parser errors to ClientRequest

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

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