Browse Source

Allows NetworkStreamer to handle the situation where a server ignore Range-end paramenter of the http Range header and return more content than expected

pull/709/head
Jacky Jiang 6 years ago
parent
commit
1abb0ded3c
  1. 7
      papaparse.js

7
papaparse.js

@ -669,8 +669,6 @@ License: MIT @@ -669,8 +669,6 @@ License: MIT
if (IS_WORKER && xhr.status === 0)
this._chunkError();
else
this._start += this._config.chunkSize;
};
this._chunkLoaded = function()
@ -684,7 +682,10 @@ License: MIT @@ -684,7 +682,10 @@ License: MIT
return;
}
this._finished = !this._config.chunkSize || this._start > getFileSize(xhr);
this._start += xhr.responseText.length;
this._finished = !this._config.chunkSize || this._start >= getFileSize(xhr);
this.parseChunk(xhr.responseText);
};

Loading…
Cancel
Save