Merge branch 'main' into refactor/ui
This commit is contained in:
@@ -1160,10 +1160,11 @@ export default defineComponent({
|
||||
// tests
|
||||
const syntheticResponse = {
|
||||
status: this.response.status,
|
||||
body: this.response.body,
|
||||
headers: this.response.headers,
|
||||
body: this.response.body || new Uint8Array([]),
|
||||
headers: this.response.headers || [],
|
||||
}
|
||||
|
||||
this.response.body = this.response.body || new Uint8Array([])
|
||||
// Parse JSON body
|
||||
if (
|
||||
syntheticResponse.headers["content-type"] &&
|
||||
|
||||
Reference in New Issue
Block a user