commit cb81f3febdf391c24504d19971d8b2a21da96245
parent 69e5c5ae05297d434c37e66a6304cbe7e9c668ba
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 12 Nov 2015 02:51:48 -0500
Set 'Content-Type: application/json' on object uploads
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/sync/syncAPIClient.js b/chrome/content/zotero/xpcom/sync/syncAPIClient.js
@@ -297,6 +297,7 @@ Zotero.Sync.APIClient.prototype = {
var xmlhttp = yield this.makeRequest(method, uri, {
headers: {
+ "Content-Type": "application/json",
"If-Unmodified-Since-Version": libraryVersion
},
body: json,