Skip to content

Instantly share code, notes, and snippets.

@indexzero
Created September 7, 2010 18:56
Show Gist options
  • Save indexzero/568851 to your computer and use it in GitHub Desktop.
Save indexzero/568851 to your computer and use it in GitHub Desktop.
response.addListener('end', function () {sys.puts('ENDING')});
var _e = res.end;
res.end = function () { sys.puts("called end"); _e();};
sys.pump(response, res);
http:541
ret = this._send('');
^
TypeError: Object #<an Object> has no method '_send'
at http:541:18
at ServerResponse.end (/Users/Charlie/Nodejitsu/node-http-proxy/lib/node-http-proxy.js:136:59)
at IncomingMessage.<anonymous> (sys:306:17)
at IncomingMessage.emit (events:43:20)
at HTTPParser.onMessageComplete (http:107:23)
at Client.ondata (http:899:22)
at IOWatcher.callback (net:494:29)
at node.js:764:9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment