Skip to content

Commit ec28d16

Browse files
committed
add headers content type
1 parent f18368d commit ec28d16

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/server/api/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ const prefix = `${base}/api/v2` as unknown as "";
1717

1818
export const app = new Elysia({ prefix })
1919
.mapResponse(({ response }) => {
20-
return new Response(superjson.stringify(response));
20+
return new Response(superjson.stringify(response), {
21+
headers: {
22+
"Content-Type": "application/json",
23+
},
24+
});
2125
})
2226
.use(
2327
swagger({

0 commit comments

Comments
 (0)