[Pkg-javascript-commits] [pdf.js] 106/119: Revert #5603 regarding Chrome range request bug
David Prévot
taffit at moszumanska.debian.org
Wed May 13 21:27:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 0c84899c0ae92d6d7348942b2e2264007953657a
Author: Tim van der Meij <timvandermeij at gmail.com>
Date: Thu Apr 30 22:37:52 2015 +0200
Revert #5603 regarding Chrome range request bug
---
src/core/worker.js | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/src/core/worker.js b/src/core/worker.js
index 2de0320..40d7d89 100644
--- a/src/core/worker.js
+++ b/src/core/worker.js
@@ -106,22 +106,6 @@ var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
var length = fullRequestXhr.getResponseHeader('Content-Length');
length = parseInt(length, 10);
-//#if (GENERIC || CHROME)
- if (fullRequestXhr.status === 206) {
- // Since Chrome 39, there exists a bug where cached responses are
- // served with status code 206 for non-range requests.
- // Content-Length does not specify the total size of the resource
- // when the status code is 206 (see RFC 2616, section 14.16).
- // In this case, extract the file size from the Content-Range
- // header, which is defined to be "bytes start-end/length" for
- // byte range requests.
- // See https://github.com/mozilla/pdf.js/issues/5512 and
- // https://code.google.com/p/chromium/issues/detail?id=442318
- length = fullRequestXhr.getResponseHeader('Content-Range');
- length = length && /bytes \d+-\d+\/(\d+)/.exec(length);
- length = length && parseInt(length[1], 10);
- }
-//#endif
if (!isInt(length)) {
return;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list