[Pkg-javascript-commits] [sockjs-client] 169/350: Force status to be 200 for chunk event.
tonnerre at ancient-solutions.com
tonnerre at ancient-solutions.com
Fri Aug 5 01:04:11 UTC 2016
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.
commit 4e01d8508e8202d388ad7e67a8efc12d15a1b0b0
Author: Bryce Kahle <bkahle at gmail.com>
Date: Fri Oct 17 16:13:13 2014 -0400
Force status to be 200 for chunk event.
---
lib/transport/browser/abstract-xhr.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/transport/browser/abstract-xhr.js b/lib/transport/browser/abstract-xhr.js
index 5218699..2824cbd 100644
--- a/lib/transport/browser/abstract-xhr.js
+++ b/lib/transport/browser/abstract-xhr.js
@@ -78,7 +78,7 @@ function AbstractXHRObject(method, url, payload, opts) {
}
// IE does return readystate == 3 for 404 answers.
- if (text && text.length > 0) {
+ if (status === 200 && text && text.length > 0) {
debug('chunk');
self.emit('chunk', status, text);
}
--
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