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
23doors opened this issue
Nov 25, 2024
· 1 comment
· Fixed by #3795
Labels
A-http1Area: HTTP/1 specific.A-serverArea: server.C-bugCategory: bug. Something is wrong. This is bad!E-easyEffort: easy. A task that would be a great starting point for a new contributor.
A-http1Area: HTTP/1 specific.A-serverArea: server.C-bugCategory: bug. Something is wrong. This is bad!E-easyEffort: easy. A task that would be a great starting point for a new contributor.
Version
hyper 1.5.0
Platform
MacOS
Description
With HEAD requests it seems it is often the case that content-length is set to relevant GET body response, but payload is empty.
That's what for example tower_http ServeDir does. In debug mode this triggers panic:
https://github.com/hyperium/hyper/blob/master/src/proto/h1/role.rs#L704C36-L704C89
I guess this assertion should skip HEAD method completely or maybe it's more of a tower_http bug and body should define different sizehints here?
Release version works as expected, as assertion is skipped.
The text was updated successfully, but these errors were encountered: