Disable range request if content-length is unknown
This commit is contained in:
parent
8ae5d2745c
commit
1daf9c984e
@ -713,6 +713,7 @@ PdfStreamConverter.prototype = {
|
|||||||
var hash = aRequest.URI.ref;
|
var hash = aRequest.URI.ref;
|
||||||
rangeRequest = contentEncoding === 'identity' &&
|
rangeRequest = contentEncoding === 'identity' &&
|
||||||
acceptRanges === 'bytes' &&
|
acceptRanges === 'bytes' &&
|
||||||
|
aRequest.contentLength >= 0 &&
|
||||||
hash.indexOf('disableRange=true') < 0;
|
hash.indexOf('disableRange=true') < 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user