diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/CommandPalette/syncActions.ts | 1 | ||||
| -rw-r--r-- | src/lib/Settings/Categories/SettingSync.svelte | 2 | ||||
| -rw-r--r-- | src/stores/settings.ts | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/CommandPalette/syncActions.ts b/src/lib/CommandPalette/syncActions.ts index 49859221..90c6a931 100644 --- a/src/lib/CommandPalette/syncActions.ts +++ b/src/lib/CommandPalette/syncActions.ts @@ -24,6 +24,7 @@ export const syncActions = ( fetch(root(`/api/configuration`), { method: "PUT", + headers: { "Content-Type": "application/json" }, body: JSON.stringify(get(settings)), }) .then((response) => { diff --git a/src/lib/Settings/Categories/SettingSync.svelte b/src/lib/Settings/Categories/SettingSync.svelte index 0cfe9261..867b2b47 100644 --- a/src/lib/Settings/Categories/SettingSync.svelte +++ b/src/lib/Settings/Categories/SettingSync.svelte @@ -29,6 +29,7 @@ import settingsSyncTimes from "$stores/settingsSyncTimes"; } else { fetch(root(`/api/configuration`), { method: 'PUT', + headers: { 'Content-Type': 'application/json' }, body: JSON.stringify($settings) }).then((response) => { if (response.ok) @@ -56,6 +57,7 @@ import settingsSyncTimes from "$stores/settingsSyncTimes"; fetch(root(`/api/configuration`), { method: 'PUT', + headers: { 'Content-Type': 'application/json' }, body: JSON.stringify($settings) }).then((response) => { if (response.ok) diff --git a/src/stores/settings.ts b/src/stores/settings.ts index 1d808a82..50dd4013 100644 --- a/src/stores/settings.ts +++ b/src/stores/settings.ts @@ -222,6 +222,7 @@ settings.subscribe((value) => { if (data?.configuration && !isEqualsJson(data.configuration, value)) fetch(root(`/api/configuration`), { method: "PUT", + headers: { "Content-Type": "application/json" }, body: JSON.stringify(value), }) .then((response) => { |