UI: Pass 'Content-Type' header in PUT request when resetting Island mode

This commit is contained in:
Shreya Malviya 2022-08-03 13:00:43 +05:30
parent c098afaee1
commit f652a489b7
1 changed files with 8 additions and 1 deletions

View File

@ -113,7 +113,14 @@ const IslandResetModal = (props: Props) => {
}})
.then(res => {
if (res.ok) {
return auth.authFetch('/api/island/mode', {method: 'PUT', body: '"unset"'})
return auth.authFetch(
'/api/island/mode',
{
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: '"unset"'
}
)
}})
.then(res => {
if (!res.ok) {