mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[dist minor] 2 space indents next time @samalba
This commit is contained in:
parent
8332e74420
commit
7e8041d2b6
@ -334,10 +334,10 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
|
||||
|
||||
// Set the headers of the client response
|
||||
if (res.sentHeaders !== true) {
|
||||
Object.keys(response.headers).forEach(function (key) {
|
||||
res.setHeader(key, response.headers[key]);
|
||||
});
|
||||
res.writeHead(response.statusCode);
|
||||
Object.keys(response.headers).forEach(function (key) {
|
||||
res.setHeader(key, response.headers[key]);
|
||||
});
|
||||
res.writeHead(response.statusCode);
|
||||
}
|
||||
|
||||
function ondata(chunk) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user