From 87d459f82765848400badbc7b883aade2ec5b102 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 10 Dec 2020 22:17:05 -0500 Subject: [PATCH] Merge pull request #2219 from crobibero/create-playlist Set Content-Type header when creating a playlist (cherry picked from commit 1c03e4c83073332ba160564a207aca3361b58c3f) Signed-off-by: Joshua M. Boniface --- src/components/playlisteditor/playlisteditor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/playlisteditor/playlisteditor.js b/src/components/playlisteditor/playlisteditor.js index e6c0349719..675e8e09c9 100644 --- a/src/components/playlisteditor/playlisteditor.js +++ b/src/components/playlisteditor/playlisteditor.js @@ -49,7 +49,8 @@ import ServerConnections from '../ServerConnections'; apiClient.ajax({ type: 'POST', url: url, - dataType: 'json' + dataType: 'json', + contentType: 'application/json' }).then(result => { loading.hide();