Skip to content

Commit

Permalink
JsLint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavparikh committed Nov 20, 2013
1 parent 7296633 commit c1e3410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/proxy/proxymanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ ProxyManager.prototype.getOptions = function (router, request) {

objUrl = url.parse(reqUrl);

port = (reqHost && reqHost.match(/:/g) ) ? reqHost.slice(reqHost.indexOf(":") + 1, reqHost.length) : port;
reqHost = (reqHost && reqHost.match(/:/g) ) ? reqHost.slice(0, reqHost.indexOf(":")) : reqHost;
port = (reqHost && reqHost.match(/:/g)) ? reqHost.slice(reqHost.indexOf(":") + 1, reqHost.length) : port;
reqHost = (reqHost && reqHost.match(/:/g)) ? reqHost.slice(0, reqHost.indexOf(":")) : reqHost;

reqHeaders['protocol'] = objUrl.protocol || 'http:'; // not standard in headers

Expand Down

0 comments on commit c1e3410

Please sign in to comment.