mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Added check to passes/web-outgoing.js to make sure the header being set is not undefined, which should be the only falsey value that could accidently show up and break that call. This fixes windows NTLM auth issues behind http-proxy.
This commit is contained in:
parent
6371231086
commit
3b39d2c3dc
@ -82,7 +82,9 @@ var redirectRegex = /^30(1|2|7|8)$/;
|
||||
*/
|
||||
function writeHeaders(req, res, proxyRes) {
|
||||
Object.keys(proxyRes.headers).forEach(function(key) {
|
||||
if(proxyRes.headers[key] != undefined){
|
||||
res.setHeader(key, proxyRes.headers[key]);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user