Skip to content
Source
Sign inSign up
TanStack/router

fix(start-server-core): use public h3 api .res #5975

Closedbirkskyum(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromfix(start-server-core)--use-public-h3-apiopened

Showing 2 changed files with 9 additions and 9 deletions.

x
0 of 2 viewed, 2 left
1 addition and 1 deletionpackages/start-server-core/src/request-response.tsModified
View file
@@ -327,7 +327,7 @@
// not public API
export function getResponse() {
const event = getH3Event()
- return event._res
+ return event.res
​
// not public API (yet)
8 additions and 8 deletionspackages/start-server-core/src/server-functions-handler.tsModified
View file
@@ -221,8 +221,8 @@
return new Response(
nonStreamingBody ? JSON.stringify(nonStreamingBody) : undefined,
- status: response?.status,
- statusText: response?.statusText,
+ status: response.status,
+ statusText: response.statusText,
headers: {
'Content-Type': 'application/json',
[X_TSS_SERIALIZED]: 'true',