Browse Source

Merge pull request #335 from hanwiz/master

Finish with current data when no content-range
pull/306/merge
Sergi Almacellas Abellana 8 years ago committed by GitHub
parent
commit
a0500c469f
  1. 3
      papaparse.js

3
papaparse.js

@ -608,6 +608,9 @@ @@ -608,6 +608,9 @@
function getFileSize(xhr)
{
var contentRange = xhr.getResponseHeader('Content-Range');
if (contentRange === null) { // no content range, then finish!
return -1;
}
return parseInt(contentRange.substr(contentRange.lastIndexOf('/') + 1));
}
}

Loading…
Cancel
Save