solid-start
solid-start copied to clipboard
[Bug?]: new Response() returns text/html
Duplicates
- [x] I have searched the existing issues
Latest version
- [x] I have tested the latest version
Current behavior 😯
it convets the content-type to text/html
Expected behavior 🤔
it should be text/plain. in h3 or nitro, this becomes text/plain.
Steps to reproduce 🕹
in routes/test.ts:
export function GET(e) {
e.nativeEvent.respondWith(new Response("test"));
}
Context 🔦
No response
Your environment 🌎
I think you neeed return , otherwise it will be treated as a simple page routing
Set retrun:
Not set return:
I think you neeed return , otherwise it will be treated as a simple page routing
Set retrun:
Not set return:
this shouldn't happen in ss, it doesn't happen in nitro/vinxi without ss
i will close this when h3 v2 comes to ss because it won't even have respondWith