From 0c5eacbd0fe9dc3acd25a4fd49707a6396f4fd4f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 28 Mar 2016 05:18:33 -0400 Subject: [PATCH] Follow existing pref for gzip-compressed uploads --- chrome/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 index 8d9662f44..787eaff29 100644 --- 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; }