commit 5f9dc0595637fa2d1c5ab126298b24f97382f029
parent ff798d332bdde9cf92d4a9fd490f9138c2f9022b
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 4 Oct 2017 21:36:28 -0400
Increase size of page logged for invalid PDF download
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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') {