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:
merpnderp 2016-01-22 09:17:14 -06:00
parent 6371231086
commit 3b39d2c3dc

View File

@ -82,7 +82,9 @@ var redirectRegex = /^30(1|2|7|8)$/;
*/
function writeHeaders(req, res, proxyRes) {
Object.keys(proxyRes.headers).forEach(function(key) {
res.setHeader(key, proxyRes.headers[key]);
if(proxyRes.headers[key] != undefined){
res.setHeader(key, proxyRes.headers[key]);
}
});
},