mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[fix] headers, closes #469
This commit is contained in:
parent
e08d4edad3
commit
29afab4488
@ -9,15 +9,15 @@ var passes = exports;
|
||||
*/
|
||||
|
||||
[ // <--
|
||||
|
||||
function writeStatusCode(res, proxyRes) {
|
||||
res.writeHead(proxyRes.statusCode);
|
||||
},
|
||||
|
||||
|
||||
function writeHeaders(res, proxyRes) {
|
||||
Object.keys(proxyRes.headers).forEach(function(key) {
|
||||
res.setHeader(key, proxyRes.headers[key]);
|
||||
});
|
||||
},
|
||||
|
||||
function writeStatusCode(res, proxyRes) {
|
||||
res.writeHead(proxyRes.statusCode);
|
||||
}
|
||||
|
||||
] // <--
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user