From 40b349edcae23fc816bab8bf0e350861c96ccd76 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 27 Mar 2015 18:43:39 -0400 Subject: [PATCH] Handle gzip encoding via saveURI() --- chrome/content/zotero/xpcom/utilities_internal.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/utilities_internal.js b/chrome/content/zotero/xpcom/utilities_internal.js index 2b9014399..8ca85b457 100644 --- a/chrome/content/zotero/xpcom/utilities_internal.js +++ b/chrome/content/zotero/xpcom/utilities_internal.js @@ -274,6 +274,9 @@ Zotero.Utilities.Internal = { * @param {nsISupports} target file */ saveURI: function (wbp, source, target) { + // Handle gzip encoding + wbp.persistFlags |= Ci.nsIWebBrowserPersist.PERSIST_FLAGS_AUTODETECT_APPLY_CONVERSION; + // Firefox 35 and below try { wbp.saveURI(source, null, null, null, null, target, null);