Permalink
Browse files

Changed res.socket.destroy() to req.socket.destroy()

  • Loading branch information...
1 parent 1d97319 commit 64cfa31f2cffe48408570fb7124c5acb72150ad7 @tj tj committed Sep 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http.js
View
@@ -159,7 +159,7 @@ Server.prototype.handle = function(req, res, out) {
if ('test' != env) console.error(err.stack || err.toString());
// unable to respond
- if (res.headerSent) return res.socket.destroy();
+ if (res.headerSent) return req.socket.destroy();
res.statusCode = 500;
res.setHeader('Content-Type', 'text/plain');

0 comments on commit 64cfa31

Please sign in to comment.