fix(common): proxy interceptor json response decode (#4840)
This commit is contained in:
parent
ced98b997a
commit
2bed24307a
1 changed files with 2 additions and 2 deletions
|
|
@ -269,7 +269,7 @@ export class ProxyKernelInterceptorService
|
|||
return E.right({
|
||||
...res,
|
||||
body: {
|
||||
body: proxyBody,
|
||||
body: proxyResponse.data,
|
||||
mediaType:
|
||||
proxyResponse.headers["content-type"] ||
|
||||
"application/octet-stream",
|
||||
|
|
@ -283,7 +283,7 @@ export class ProxyKernelInterceptorService
|
|||
statusText: proxyResponse.statusText,
|
||||
headers: proxyResponse.headers,
|
||||
body: {
|
||||
body: proxyBody,
|
||||
body: new TextEncoder().encode(proxyResponse.data),
|
||||
mediaType: "text/plain",
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue