Skip to content

Commit 1daf9c9

Browse files
committed
Disable range request if content-length is unknown
1 parent 8ae5d27 commit 1daf9c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extensions/firefox/components/PdfStreamConverter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ PdfStreamConverter.prototype = {
713713
var hash = aRequest.URI.ref;
714714
rangeRequest = contentEncoding === 'identity' &&
715715
acceptRanges === 'bytes' &&
716+
aRequest.contentLength >= 0 &&
716717
hash.indexOf('disableRange=true') < 0;
717718
}
718719

0 commit comments

Comments
 (0)