UI: Don't convert response to JSON before creating Response object in IslandHttpClient's put()
This commit is contained in:
parent
9c17cf44b1
commit
4bcab891b2
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue