1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

Fixed: Restoring backup from zip file on disk

This commit is contained in:
Mark McDowall 2021-02-08 08:21:14 -08:00
parent 6c324c8a1c
commit 5960035d5d

View File

@ -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';