1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Disable range request if content-length is unknown

This commit is contained in:
Mack Duan 2013-04-22 15:49:39 -07:00
parent 8ae5d2745c
commit 1daf9c984e

View file

@ -713,6 +713,7 @@ PdfStreamConverter.prototype = {
var hash = aRequest.URI.ref;
rangeRequest = contentEncoding === 'identity' &&
acceptRanges === 'bytes' &&
aRequest.contentLength >= 0 &&
hash.indexOf('disableRange=true') < 0;
}