Browse Source

Disable range request if content-length is unknown

Mack Duan 12 years ago
parent
commit
1daf9c984e
  1. 1
      extensions/firefox/components/PdfStreamConverter.js

1
extensions/firefox/components/PdfStreamConverter.js

@ -713,6 +713,7 @@ PdfStreamConverter.prototype = { @@ -713,6 +713,7 @@ PdfStreamConverter.prototype = {
var hash = aRequest.URI.ref;
rangeRequest = contentEncoding === 'identity' &&
acceptRanges === 'bytes' &&
aRequest.contentLength >= 0 &&
hash.indexOf('disableRange=true') < 0;
}

Loading…
Cancel
Save