Skip to content

Commit

Permalink
Fixed regression creating connection over https from node
Browse files Browse the repository at this point in the history
  • Loading branch information
jamo committed Oct 27, 2016
1 parent 5824a58 commit 9abcb15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/transports/polling.js
Expand Up @@ -230,8 +230,8 @@ Polling.prototype.uri = function () {
query = parseqs.encode(query);

// avoid port if default for schema
if (this.port && (('https' === schema && this.port !== 443) ||
('http' === schema && this.port !== 80))) {
if (this.port && (('https' === schema && Number(this.port) !== 443) ||
('http' === schema && Number(this.port) !== 80))) {
port = ':' + this.port;
}

Expand Down

0 comments on commit 9abcb15

Please sign in to comment.