fix(common): proxy interceptor json response decode (#4840)

This commit is contained in:
Shreyas 2025-03-06 15:58:03 +05:30 committed by GitHub
parent ced98b997a
commit 2bed24307a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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",
},
})