Handle gzip encoding via saveURI()

This commit is contained in:
Dan Stillman 2015-03-27 18:43:39 -04:00
parent c9a787c7bd
commit 40b349edca

View File

@ -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);