Gzip-compress API uploads larger than 1000 characters
This commit is contained in:
parent
144d02e36c
commit
35530af1fb
8 changed files with 3261 additions and 4 deletions
|
@ -5278,6 +5278,11 @@ if (typeof sinon === "undefined") {
|
|||
this.requestHeaders["Content-Type"] = "text/plain;charset=utf-8";
|
||||
}
|
||||
|
||||
// Added by Zotero
|
||||
if (this.requestHeaders['Content-Encoding'] == 'gzip') {
|
||||
data = gunzip(data, true);
|
||||
}
|
||||
|
||||
this.requestBody = data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue