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
{{ message }}
Repository navigation
Bug: Prefix option causes http: invalid Read on closed Body in downstream handlers #49
While experimenting with echov5, this was observed. Later trying it on echo/v4, the issue could be reproduced.
When Options.Prefix is set, the middleware reads and closes the request body during validation but fails to restore it on the originalecho.Context request. Downstream handlers that try to read the body receive http: invalid Read on closed Body or EOF.
Activity
jinuthankachan commentedon Apr 15, 2026
The issue exists in current main branch.
Tested with echo/v4
jinuthankachan commentedon Apr 15, 2026
This could be fixed via jinuthankachan@ebc95b6#diff-215bd2f3b5dc6e861b4a3a3fd643fda09e01ca5e377e9b2ef7f88abe1666cec5
Trim the prefix in place instead of validating a clone