Permalink
Browse files

honor document protocol, unless overriden

  • Loading branch information...
dvv committed Jul 1, 2011
1 parent 6f4566a commit b3a156885ba8a00883b5c36856f42286320b55a0
Showing with 3 additions and 1 deletion.
  1. +1 −0 dist/socket.io.js
  2. +1 −1 dist/socket.io.min.js
  3. +1 −0 lib/io.js
View
@@ -70,6 +70,7 @@
, socket;
if ('undefined' != typeof document) {
+ uri.protocol = uri.protocol || document.location.protocol.slice(0, -1);
uri.host = uri.host || document.domain;
uri.port = uri.port || document.location.port;
}
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -152,6 +152,7 @@
, socket;
if ('undefined' != typeof document) {
+ uri.protocol = uri.protocol || document.location.protocol.slice(0, -1);
uri.host = uri.host || document.domain;
uri.port = uri.port || document.location.port;
}

0 comments on commit b3a1568

Please sign in to comment.