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 3aa196f + 215bc13 commit 1bce907Copy full SHA for 1bce907
src/response/JsonResponse.ts
@@ -9,6 +9,7 @@ export class JsonResponse<T> extends TextResponse {
9
*/
10
public constructor(json: T, statusCode = 200, headers?: HeadersInit) {
11
super(JsonResponse.serialise(json), statusCode, headers);
12
+ this.headers.set("content-type", "application/json");
13
}
14
15
protected static serialise(value: any): string {
0 commit comments