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 00800e7 + 4619f25 commit 73177f0Copy full SHA for 73177f0
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