We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5027318 commit 9712c24Copy full SHA for 9712c24
lib/transport/receiver/xhr.js
@@ -37,12 +37,13 @@ XhrReceiver.prototype._chunkHandler = function(status, text) {
37
return;
38
}
39
40
- for (var idx = -1; ; this.bufferPosition += idx + 1) {
+ for (var idx = -1; ; ) {
41
var buf = text.slice(this.bufferPosition);
42
idx = buf.indexOf('\n');
43
if (idx === -1) {
44
break;
45
46
+ this.bufferPosition += idx + 1;
47
var msg = buf.slice(0, idx);
48
if (msg) {
49
debug('message', msg);
0 commit comments