[Pkg-javascript-commits] [sockjs-client] 50/434: Apparently \x00 doesn't go through xhr in ie. Replaced with \n.
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:01 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 89fa5836542eb8c8f49dd49c0baac9893fa68435
Author: Marek Majkowski <majek04 at gmail.com>
Date: Wed Aug 3 18:58:45 2011 +0100
Apparently \x00 doesn't go through xhr in ie. Replaced with \n.
---
lib/trans-xhr-polling.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/trans-xhr-polling.js b/lib/trans-xhr-polling.js
index 000c54a..69fa231 100644
--- a/lib/trans-xhr-polling.js
+++ b/lib/trans-xhr-polling.js
@@ -14,11 +14,11 @@ XhrTransport.prototype._schedule_recv = function() {
var that = this;
var message_callback = function (xhr, messages) {
if (xhr.status === 200) {
- for(var i=0; i<messages.length; i++)
+ for(var i=0; i < messages.length; i++)
that.ri._didMessage(messages[i]);
if (messages.length === 1 && messages[0] === 'o') {
that._streaming = true;
- utils.log("Upgrading to streaming");
+ utils.log('Upgrading from "xhr-polling" to "xhr-streaming"');
}
}
};
@@ -55,7 +55,7 @@ var xhrPoll = function(url, message_callback, end_callback) {
var msgs = [];
while (1) {
var buf = xhr.responseText.slice(buf_pos);
- var p = buf.indexOf('\x00');
+ var p = buf.indexOf('\n');
if (p === -1) break;
buf_pos += p+1;
msgs.push( buf.slice(0, p) );
--
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