Permalink
Browse files

[minor] Move private helper to end of file.

  • Loading branch information...
indexzero committed Mar 9, 2013
1 parent 9be0af3 commit 476cbe741fc41b7f1eb269d841d922784e8b3c6b
Showing with 4 additions and 3 deletions.
  1. +4 −3 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');
+}

0 comments on commit 476cbe7

Please sign in to comment.