[Pkg-javascript-commits] [sockjs-client] 125/434: In tests we use sockjs.chunkingTest with raw url, which may be empty string or slash. Normalize it before using.
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch master
in repository sockjs-client.
commit 795bc8a0b4dc97a6a2b51c3549cbf96b607bf6cc
Author: Marek Majkowski <majek04 at gmail.com>
Date: Tue Sep 6 12:34:10 2011 +0100
In tests we use sockjs.chunkingTest with raw url, which may be empty string or slash. Normalize it before using.
---
lib/chunking-test.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/chunking-test.js b/lib/chunking-test.js
index fd06a7e..11446ea 100644
--- a/lib/chunking-test.js
+++ b/lib/chunking-test.js
@@ -27,6 +27,7 @@ var ChunkingTestIframe = FacadeJS['w-iframe-chunking-test'] = function (ri, tran
ChunkingTestIframe.prototype.doCleanup = function() {};
var chunkingTestUncached = SockJS.chunkingTest = function(base_url, callback) {
+ base_url = utils.amendUrl(base_url);
// 1. CORS
if (_window.XDomainRequest ||
(_window.XMLHttpRequest && 'withCredentials' in new XMLHttpRequest())) {
@@ -38,7 +39,7 @@ var chunkingTestUncached = SockJS.chunkingTest = function(base_url, callback) {
var ifr = new IframeTransport();
ifr.protocol = 'w-iframe-chunking-test';
var fun = function(r) {
- if (ifr){
+ if (ifr) {
callback(r === 'mtrue');
ifr.doCleanup();
ifr = null;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list