Merge pull request #3143 from mduan/issue3137
Disable range request if content-length is unknown
This commit is contained in:
commit
f93582a26d
@ -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…
x
Reference in New Issue
Block a user