File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/start/src/runtime Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,9 @@ async function handleServerFunction(h3Event: HTTPEvent) {
128
128
// This should never be the case in "proper" Nitro presets since node.req has to be IncomingMessage,
129
129
// But the new azure-functions preset for some reason uses a ReadableStream in node.req (#1521)
130
130
const isReadableStream = h3Request instanceof ReadableStream ;
131
- const hasReadableStream = h3Request . body instanceof ReadableStream ;
131
+ const hasReadableStream = ( h3Request as EdgeIncomingMessage ) . body instanceof ReadableStream ;
132
132
const isH3EventBodyStreamLocked =
133
- ( isReadableStream && h3Request . locked ) || ( hasReadableStream && h3Request . body . locked ) ;
133
+ ( isReadableStream && h3Request . locked ) || ( hasReadableStream && ( ( h3Request as EdgeIncomingMessage ) . body as ReadableStream ) . locked ) ;
134
134
const requestBody = isReadableStream ? h3Request : h3Request . body ;
135
135
136
136
if (
You can’t perform that action at this time.
0 commit comments