mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[minor] Small whitespace compliance.
This commit is contained in:
parent
5d515e4728
commit
ea0587a8f9
@ -112,7 +112,7 @@ var HttpProxy = exports.HttpProxy = function (options) {
|
||||
util.inherits(HttpProxy, events.EventEmitter);
|
||||
|
||||
//
|
||||
// ### function proxyRequest (req, res, [port, host, paused])
|
||||
// ### function proxyRequest (req, res, buffer)
|
||||
// #### @req {ServerRequest} Incoming HTTP Request to proxy.
|
||||
// #### @res {ServerResponse} Outgoing HTTP Request to write proxied data to.
|
||||
// #### @buffer {Object} Result from `httpProxy.buffer(req)`
|
||||
@ -164,7 +164,8 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
|
||||
req.headers['x-forwarded-proto'] = getProto(req);
|
||||
}
|
||||
}
|
||||
if(this.timeout) {
|
||||
|
||||
if (this.timeout) {
|
||||
req.socket.setTimeout(this.timeout);
|
||||
}
|
||||
|
||||
@ -382,7 +383,6 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
|
||||
// `req` write it to the `reverseProxy` request.
|
||||
//
|
||||
req.on('data', function (chunk) {
|
||||
|
||||
if (!errState) {
|
||||
var flushed = reverseProxy.write(chunk);
|
||||
if (!flushed) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user