Skip to content

Commit bd8e2c9

Browse files
authored
Merge branch 'main' into function-server-errors
2 parents e60b8c7 + 1bce907 commit bd8e2c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/response/JsonResponse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export class JsonResponse<T> extends TextResponse {
99
*/
1010
public constructor(json: T, statusCode = 200, headers?: HeadersInit) {
1111
super(JsonResponse.serialise(json), statusCode, headers);
12+
this.headers.set("content-type", "application/json");
1213
}
1314

1415
protected static serialise(value: any): string {

0 commit comments

Comments
 (0)