mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Merge pull request #940 from merpnderp/FixSetHeader
Added check to passes/web-outgoing.js to make sure the header being s…
This commit is contained in:
commit
646a7493a4
@ -82,7 +82,9 @@ var redirectRegex = /^30(1|2|7|8)$/;
|
|||||||
*/
|
*/
|
||||||
function writeHeaders(req, res, proxyRes) {
|
function writeHeaders(req, res, proxyRes) {
|
||||||
Object.keys(proxyRes.headers).forEach(function(key) {
|
Object.keys(proxyRes.headers).forEach(function(key) {
|
||||||
res.setHeader(key, proxyRes.headers[key]);
|
if(proxyRes.headers[key] != undefined){
|
||||||
|
res.setHeader(key, proxyRes.headers[key]);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user