Skip to content

Commit ca310ec

Browse files
authored
make new Response() returns text/plain (#1912)
1 parent 5d0c44e commit ca310ec

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/tough-towns-pick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/start": patch
3+
---
4+
5+
now using respondWith or node.res.end will behave correctly

packages/start/src/server/handler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export function createBaseHandler(
5959
`API handler for ${event.request.method} "${event.request.url}" did not return a response.`
6060
);
6161
}
62+
return;
6263
}
6364

6465
// render

0 commit comments

Comments
 (0)