Permalink
Browse files

Update package.js

  • Loading branch information...
1 parent 818144c commit 402e92769864ad4f98f0395530cf168234169cbd @zaghbizied zaghbizied committed on GitHub Dec 5, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/package.js
View
@@ -39,7 +39,7 @@ Package.proxy = function(req, res, message) {
var parsed = url.parse(remoteUrl),
opts = {
host: parsed.host,
- port: parsed.port,
+ port: (parsed.port !== null) ? parsed.port : (remoteIsHttps ? 443 : 80),
path: req.url,
headers: req.headers,
method: req.method

0 comments on commit 402e927

Please sign in to comment.