Skip to content

Commit f6faff4

Browse files
committed
fix: ensure response is constructed empty for values without constructor
1 parent fbbe577 commit f6faff4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/handle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export const mapResponse = (
115115
return new Response(response as ReadableStream, set as any)
116116

117117
case undefined:
118-
if (!response) return new Response('', set as any)
118+
if (!response) return new Response(null, set as any)
119119

120120
return new Response(JSON.stringify(response), set as any)
121121

0 commit comments

Comments
 (0)