Skip to content

Commit

Permalink
[minor] Prevent Engine.IO from parsing the host portion of the URL
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed May 23, 2015
1 parent 674f388 commit 55b72f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions transformers/engine.io/client.js
Expand Up @@ -42,6 +42,12 @@ module.exports = function client() {
primus.socket = socket = factory(primus.merge(primus.transport,
primus.url,
primus.uri({ protocol: 'http:', query: true, object: true }), {
//
// We have already parsed the hostname and port portions of the URL.
// Set the host portion to `null` so Engine.IO does not parse it again.
//
host: null,

//
// Never remember upgrades as switching from a WIFI to a 3G connection
// could still get your connection blocked as 3G connections are usually
Expand Down

0 comments on commit 55b72f4

Please sign in to comment.