-
-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content-type is not specified when returning c.text in bun #2284
Comments
Note:
|
Sorry to bother you all - especially @watany-dev!
The "default is text/plain" seems a bit odd, but if hono itself has such a specification ( |
As mentioned by @watany-dev, if we use app.get('/', (c) => c.text('foo')) This is because the performance with and without When Hono didn't add |
@yusukebe @usualoma
|
What version of Hono are you using?
4.0.7
What runtime/platform is your app running on?
Bun
What steps can reproduce the bug?
What is the expected behavior?
I would like it to work as
'Content-Type', 'text/plain; charset=UTF-8'
.I am concerned if this should be addressed on the Adaptor side as it seems to be a problem on the Bun side.
oven-sh/bun#8530
What do you see instead?
No response
Additional information
I found this CI Bun from the failure.
#2247
In other words, this leads to the possibility that the specification "SSG to error on those without Content-type" may be difficult to implement due to the differences in Bun. There are three possible approaches
The text was updated successfully, but these errors were encountered: