mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
adding some debug messages for live testing
This commit is contained in:
parent
711258ef46
commit
4069a7e98c
@ -28,6 +28,7 @@ var sys = require('sys'),
|
||||
http = require('http'),
|
||||
events = require('events'),
|
||||
pool = require('pool'),
|
||||
eyes = require('eyes'),
|
||||
min = 0,
|
||||
max = 100;
|
||||
|
||||
@ -128,6 +129,9 @@ HttpProxy.prototype = {
|
||||
// Remark: We should probably do something here
|
||||
// but this is a hot-fix because I don't think 'pool'
|
||||
// should be emitting this event.
|
||||
sys.puts('p.on, error fired');
|
||||
eyes.inspect(err);
|
||||
this.res.end();
|
||||
});
|
||||
|
||||
p.request(req.method, req.url, req.headers, function (reverse_proxy) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user