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:
parent
8ae5d2745c
commit
1daf9c984e
1 changed files with 1 additions and 0 deletions
|
@ -713,6 +713,7 @@ PdfStreamConverter.prototype = {
|
|||
var hash = aRequest.URI.ref;
|
||||
rangeRequest = contentEncoding === 'identity' &&
|
||||
acceptRanges === 'bytes' &&
|
||||
aRequest.contentLength >= 0 &&
|
||||
hash.indexOf('disableRange=true') < 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue