http: emit Error object after .abort()
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 3 Nov 2011 00:20:54 +0000 (01:20 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 3 Nov 2011 00:30:03 +0000 (01:30 +0100)
commit359a65a6db1c82ed3a4bb7f5be254912771f5062
treeb2ffb8a75e9dbd05a5e7f4225798370ffade9b43
parent143aeb9ea716b1af0baeb700903961612b457143
http: emit Error object after .abort()

It was emitting the net.Socket object due to misuse of the arguments object.

Fixes #1399.
lib/http.js
test/simple/test-http-abort-before-end.js [new file with mode: 0644]