Skip to content

Commit ea0587a

Browse files
committed
[minor] Small whitespace compliance.
1 parent 5d515e4 commit ea0587a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ var HttpProxy = exports.HttpProxy = function (options) {
112112
util.inherits(HttpProxy, events.EventEmitter);
113113

114114
//
115-
// ### function proxyRequest (req, res, [port, host, paused])
115+
// ### function proxyRequest (req, res, buffer)
116116
// #### @req {ServerRequest} Incoming HTTP Request to proxy.
117117
// #### @res {ServerResponse} Outgoing HTTP Request to write proxied data to.
118118
// #### @buffer {Object} Result from `httpProxy.buffer(req)`
@@ -164,7 +164,8 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
164164
req.headers['x-forwarded-proto'] = getProto(req);
165165
}
166166
}
167-
if(this.timeout) {
167+
168+
if (this.timeout) {
168169
req.socket.setTimeout(this.timeout);
169170
}
170171

@@ -382,7 +383,6 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
382383
// `req` write it to the `reverseProxy` request.
383384
//
384385
req.on('data', function (chunk) {
385-
386386
if (!errState) {
387387
var flushed = reverseProxy.write(chunk);
388388
if (!flushed) {

0 commit comments

Comments
 (0)