www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 40b349edcae23fc816bab8bf0e350861c96ccd76
parent c9a787c7bdd9a1a14833fe9c220ffdd86fa3808b
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 27 Mar 2015 18:43:39 -0400

Handle gzip encoding via saveURI()

Diffstat:
Mchrome/content/zotero/xpcom/utilities_internal.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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);