Browse Source

fix port normalization

http2
Vsevolod Strukchinsky 9 years ago
parent
commit
12af4313cb
  1. 2
      index.js

2
index.js

@ -207,7 +207,7 @@ function normalizeArguments(url, opts) {
opts
);
if (!Number.isInteger(opts.port)) {
if (opts.port === null) {
opts.port = opts.protocol === 'http' ? 80 : 443;
}

Loading…
Cancel
Save