From a605ca12a442b300086ebfb19d34ca27efbf66b8 Mon Sep 17 00:00:00 2001 From: crobibero Date: Thu, 10 Dec 2020 11:40:05 -0700 Subject: [PATCH] Set Content-Type header when creating a playlist --- 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();