8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9be0af3 commit 476cbe7Copy full SHA for 476cbe7
lib/node-http-proxy/http-proxy.js
@@ -116,9 +116,6 @@ util.inherits(HttpProxy, events.EventEmitter);
116
// #### @res {ServerResponse} Outgoing HTTP Request to write proxied data to.
117
// #### @buffer {Object} Result from `httpProxy.buffer(req)`
118
//
119
-function getProto(req) {
120
- return req.isSpdy ? 'https' : (req.connection.pair ? 'https' : 'http');
121
-}
122
HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
123
var self = this,
124
errState = false,
@@ -899,3 +896,7 @@ HttpProxy.prototype._forwardRequest = function (req) {
899
896
forwardProxy.end();
900
897
});
901
898
};
+
+function getProto(req) {
+ return req.isSpdy ? 'https' : (req.connection.pair ? 'https' : 'http');
902
+}
0 commit comments