You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm guessing that hono starts to stream the body at some size of response body which breaks the etag functionality. I'm not sure what the best fix is in this case. Is it possible to disable the streaming or to read the entire stream into a string at this point?
The text was updated successfully, but these errors were encountered:
What version of Hono are you using?
4.6.5
What runtime/platform is your app running on?
Cloudflare workers
What steps can reproduce the bug?
Generate a large response (20kb) with the etag middleware using weak etags, change a character in the response again.
What is the expected behavior?
When changing the response body the etag should be different
What do you see instead?
Different response bodies generate the same etag
Additional information
When output'ing the respons body used for generating the hash it looks like this:
This is the section in the middleware that we had a look at:
I'm guessing that hono starts to stream the body at some size of response body which breaks the etag functionality. I'm not sure what the best fix is in this case. Is it possible to disable the streaming or to read the entire stream into a string at this point?
The text was updated successfully, but these errors were encountered: