Skip to content

Commit 7782d46

Browse files
committed
fix: Missing content type for non streaming responses
1 parent f5cfe56 commit 7782d46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/server/controllers/ChatController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export class ChatController {
2323
if (isStreamingRequest) {
2424
return this.#stream(c, model, abortController, request);
2525
} else {
26+
c.header("Content-Type", "application/json");
2627
c.env.outgoing.on("close", () => {
2728
abortController.abort();
2829
});

0 commit comments

Comments
 (0)