We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6aaa98 commit 51d3663Copy full SHA for 51d3663
console/atest-ui/src/views/net.ts
@@ -25,7 +25,11 @@ async function DefaultResponseProcess(response: any) {
25
const message = await response.json().then((data: any) => data.message)
26
throw new Error(message)
27
} else {
28
- return response.json()
+ const contentType = response.headers.get('Content-Type') || '';
29
+ if (contentType.includes('text/plain')) {
30
+ return response.text();
31
+ }
32
+ return response.json();
33
}
34
35
0 commit comments