Skip to content

Commit 7e8041d

Browse files
committed
[dist minor] 2 space indents next time @samalba
1 parent 8332e74 commit 7e8041d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/node-http-proxy/http-proxy.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
239239
if (this.changeOrigin) {
240240
outgoing.headers.host = this.target.host;
241241
// Only add port information to the header if not default port
242-
// for this protocol.
242+
// for this protocol.
243243
// See https://github.com/nodejitsu/node-http-proxy/issues/458
244244
if (this.target.port !== 443 && this.target.https ||
245245
this.target.port !== 80 && !this.target.https) {
@@ -334,10 +334,10 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
334334

335335
// Set the headers of the client response
336336
if (res.sentHeaders !== true) {
337-
Object.keys(response.headers).forEach(function (key) {
338-
res.setHeader(key, response.headers[key]);
339-
});
340-
res.writeHead(response.statusCode);
337+
Object.keys(response.headers).forEach(function (key) {
338+
res.setHeader(key, response.headers[key]);
339+
});
340+
res.writeHead(response.statusCode);
341341
}
342342

343343
function ondata(chunk) {

0 commit comments

Comments
 (0)