UI: Don't convert response to JSON before creating Response object in IslandHttpClient's put()

This commit is contained in:
Shreya Malviya 2022-08-03 15:26:48 +05:30
parent 9c17cf44b1
commit 4bcab891b2
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class IslandHttpClient extends AuthComponent {
headers: {'Content-Type': 'application/json'},
body: JSON.stringify(contents)
})
.then(res => {status = res.status; return res.json()})
.then(res => {status = res.status; return res})
.then(res => new Response(res, status));
}