diff --git a/frontend/src/Utilities/createAjaxRequest.js b/frontend/src/Utilities/createAjaxRequest.js index dac6fbd32..3967c6748 100644 --- a/frontend/src/Utilities/createAjaxRequest.js +++ b/frontend/src/Utilities/createAjaxRequest.js @@ -30,7 +30,7 @@ function addApiKey(ajaxOptions) { function addContentType(ajaxOptions) { if ( - !ajaxOptions.contentType && + ajaxOptions.contentType == null && ajaxOptions.dataType === 'json' && (ajaxOptions.method === 'PUT' || ajaxOptions.method === 'POST')) { ajaxOptions.contentType = 'application/json';