Skip to content

Commit

Permalink
Add headers to app routes IPC (#3518)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkirsz authored Jan 27, 2023
1 parent 18e703b commit 9b5b507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/next-core/js/src/entry/app-renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type IpcIncomingMessage = {
type IpcOutgoingMessage = {
type: "response";
statusCode: number;
contentType: string;
headers: Array<[string, string]>;
body: string;
};

Expand Down Expand Up @@ -260,7 +260,7 @@ async function runOperation(renderData: RenderData) {
body = result.toUnchunkedString();
}
return {
contentType: result.contentType() ?? MIME_TEXT_HTML_UTF8,
headers: [["Content-Type", result.contentType() ?? MIME_TEXT_HTML_UTF8]],
body,
};
}
Expand Down

0 comments on commit 9b5b507

Please sign in to comment.