mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Disables streaming in the extension when length is undefined.
This commit is contained in:
parent
29eb147d42
commit
c0e933682a
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