From 5f9dc0595637fa2d1c5ab126298b24f97382f029 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 4 Oct 2017 21:36:28 -0400 Subject: [PATCH] Increase size of page logged for invalid PDF download --- chrome/content/zotero/xpcom/attachments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 9d51000afa..84f839b095 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -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') {