Skip to content

Commit 476cbe7

Browse files
committed
[minor] Move private helper to end of file.
1 parent 9be0af3 commit 476cbe7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ util.inherits(HttpProxy, events.EventEmitter);
116116
// #### @res {ServerResponse} Outgoing HTTP Request to write proxied data to.
117117
// #### @buffer {Object} Result from `httpProxy.buffer(req)`
118118
//
119-
function getProto(req) {
120-
return req.isSpdy ? 'https' : (req.connection.pair ? 'https' : 'http');
121-
}
122119
HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
123120
var self = this,
124121
errState = false,
@@ -899,3 +896,7 @@ HttpProxy.prototype._forwardRequest = function (req) {
899896
forwardProxy.end();
900897
});
901898
};
899+
900+
function getProto(req) {
901+
return req.isSpdy ? 'https' : (req.connection.pair ? 'https' : 'http');
902+
}

0 commit comments

Comments
 (0)