Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[patch] Apply the patch from https://github.com/LearnBoost/engine.io-…
- Loading branch information
Showing
3 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
transformers/engine.io/patches/IE8pollingcachebuster.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff --git a/transformers/engine.io/library.js b/transformers/engine.io/library.js | ||
index 7886c11..151e3e1 100644 | ||
--- a/transformers/engine.io/library.js | ||
+++ b/transformers/engine.io/library.js | ||
@@ -708,6 +708,13 @@ function Transport (opts) { | ||
Emitter(Transport.prototype); | ||
|
||
/** | ||
+ * A counter used to prevent collisions in the timestamps used | ||
+ * for cache busting. | ||
+ */ | ||
+ | ||
+Transport.timestamps = 0; | ||
+ | ||
+/** | ||
* Emits an error. | ||
* | ||
* @param {String} str | ||
@@ -1898,7 +1905,7 @@ Polling.prototype.uri = function(){ | ||
|| util.ua.ios6 | ||
|| this.timestampRequests) { | ||
if (false !== this.timestampRequests) { | ||
- query[this.timestampParam] = +new Date; | ||
+ query[this.timestampParam] = +new Date + '-' + Transport.timestamps++; | ||
} | ||
} | ||
|
||
@@ -3527,4 +3534,4 @@ function ws(uri, protocols, opts) { | ||
|
||
if (WebSocket) ws.prototype = WebSocket.prototype; | ||
|
||
-},{}]},{},[1]) | ||
\ No newline at end of file | ||
+},{}]},{},[1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters