Skip to content

Commit f93582a

Browse files
committed
Merge pull request mozilla#3143 from mduan/issue3137
Disable range request if content-length is unknown
2 parents 9c9ed2f + 1daf9c9 commit f93582a

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)