Follow existing pref for gzip-compressed uploads
This commit is contained in:
parent
35530af1fb
commit
0c5eacbd0f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user