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 9ce9b2f commit 4d19669Copy full SHA for 4d19669
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