Increase size of page logged for invalid PDF download

This commit is contained in:
Dan Stillman 2017-10-04 21:36:28 -04:00
parent ff798d332b
commit 5f9dc05956

View file

@ -337,7 +337,7 @@ Zotero.Attachments = new function(){
Zotero.Utilities.Internal.saveURI(wbp, nsIURL, tmpFile);
yield deferred.promise;
let sample = yield Zotero.File.getSample(tmpFile);
let sample = yield Zotero.File.getContentsAsync(tmpFile, null, 1000);
try {
if (contentType == 'application/pdf' &&
Zotero.MIME.sniffForMIMEType(sample) != 'application/pdf') {