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.
2 parents 4083a06 + 73177f0 commit 0e41646Copy full SHA for 0e41646
src/content/BatchResponseContent.ts
@@ -69,6 +69,12 @@ export class BatchResponseContent {
69
options.statusText = responseJSON.statusText;
70
}
71
options.headers = responseJSON.headers;
72
+ if (options.headers !== undefined && options.headers["Content-Type"] !== undefined) {
73
+ if (options.headers["Content-Type"].split(";")[0] === "application/json") {
74
+ const bodyString = JSON.stringify(body);
75
+ return new Response(bodyString, options);
76
+ }
77
78
return new Response(body, options);
79
80
0 commit comments