diff --git a/lib/node-http-proxy/http-proxy.js b/lib/node-http-proxy/http-proxy.js index 38841b6..cc4f9f1 100644 --- a/lib/node-http-proxy/http-proxy.js +++ b/lib/node-http-proxy/http-proxy.js @@ -116,9 +116,6 @@ util.inherits(HttpProxy, events.EventEmitter); // #### @res {ServerResponse} Outgoing HTTP Request to write proxied data to. // #### @buffer {Object} Result from `httpProxy.buffer(req)` // -function getProto(req) { - return req.isSpdy ? 'https' : (req.connection.pair ? 'https' : 'http'); -} HttpProxy.prototype.proxyRequest = function (req, res, buffer) { var self = this, errState = false, @@ -899,3 +896,7 @@ HttpProxy.prototype._forwardRequest = function (req) { forwardProxy.end(); }); }; + +function getProto(req) { + return req.isSpdy ? 'https' : (req.connection.pair ? 'https' : 'http'); +} \ No newline at end of file