mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[fix] getting rid of try..catch, as @mmalecki suggested
This commit is contained in:
parent
52defcb3f2
commit
77f3723bb9
@ -53,9 +53,7 @@ var ProxyStream = module.exports = function ProxyStream(response, options) {
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
self.emit('proxyResponse', req, response, res);
|
||||
} catch (e) {}
|
||||
self.emit('proxyResponse', req, response, res);
|
||||
|
||||
Object.keys(res.headers).forEach(function (key) {
|
||||
response.setHeader(key, res.headers[key]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user