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
@ -627,7 +627,7 @@ var PDFView = {
|
|||||||
|
|
||||||
this.pdfDocument.getData().then(
|
this.pdfDocument.getData().then(
|
||||||
function getDataSuccess(data) {
|
function getDataSuccess(data) {
|
||||||
var blob = PDFJS.createBlob(data.buffer, 'application/pdf');
|
var blob = PDFJS.createBlob(data, 'application/pdf');
|
||||||
downloadManager.download(blob, url, filename);
|
downloadManager.download(blob, url, filename);
|
||||||
},
|
},
|
||||||
noData // Error occurred try downloading with just the url.
|
noData // Error occurred try downloading with just the url.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user