www

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

commit 0c5eacbd0fe9dc3acd25a4fd49707a6396f4fd4f
parent 35530af1fb65f964587abf9e9109ebf27f5a1cbb
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 28 Mar 2016 05:18:33 -0400

Follow existing pref for gzip-compressed uploads

Diffstat:
Mchrome/content/zotero/xpcom/sync/syncAPIClient.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/sync/syncAPIClient.js b/chrome/content/zotero/xpcom/sync/syncAPIClient.js @@ -572,7 +572,8 @@ Zotero.Sync.APIClient.prototype = { opts.dontCache = true; opts.foreground = !options.background; opts.responseType = options.responseType || 'text'; - if (options.body && options.body.length >= this.MIN_GZIP_SIZE) { + if (options.body && options.body.length >= this.MIN_GZIP_SIZE + && Zotero.Prefs.get('sync.server.compressData')) { opts.compressBody = true; }