Skip to content

Commit

Permalink
[minor] Move private helper to end of file.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Mar 9, 2013
1 parent 9be0af3 commit 476cbe7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/node-http-proxy/http-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.