mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Follow existing pref for gzip-compressed uploads
This commit is contained in:
parent
35530af1fb
commit
0c5eacbd0f
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue