mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #3634 from nmaier/download-buffer
Firefox: Corrupt downloads ("padded" downloads) when there is no content length
This commit is contained in:
commit
c55cb9d8b6
1 changed files with 1 additions and 1 deletions
|
@ -627,7 +627,7 @@ var PDFView = {
|
|||
|
||||
this.pdfDocument.getData().then(
|
||||
function getDataSuccess(data) {
|
||||
var blob = PDFJS.createBlob(data.buffer, 'application/pdf');
|
||||
var blob = PDFJS.createBlob(data, 'application/pdf');
|
||||
downloadManager.download(blob, url, filename);
|
||||
},
|
||||
noData // Error occurred try downloading with just the url.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue