mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #5373 from yurydelendik/issue5372
Disables streaming in the extension when length is undefined.
This commit is contained in:
commit
09b62e8317
1 changed files with 1 additions and 0 deletions
|
@ -897,6 +897,7 @@ PdfStreamConverter.prototype = {
|
|||
(!isPDFBugEnabled ||
|
||||
hash.toLowerCase().indexOf('disablerange=true') < 0);
|
||||
streamRequest = contentEncoding === 'identity' &&
|
||||
aRequest.contentLength >= 0 &&
|
||||
!getBoolPref(PREF_PREFIX + '.disableStream', false) &&
|
||||
(!isPDFBugEnabled ||
|
||||
hash.toLowerCase().indexOf('disablestream=true') < 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue