From cb81f3febdf391c24504d19971d8b2a21da96245 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 12 Nov 2015 02:51:48 -0500 Subject: [PATCH] Set 'Content-Type: application/json' on object uploads --- chrome/content/zotero/xpcom/sync/syncAPIClient.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/xpcom/sync/syncAPIClient.js b/chrome/content/zotero/xpcom/sync/syncAPIClient.js index d71231cfeb..d4f9e5f460 100644 --- 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,