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
Response.WriteHeader treats 1xx informational status codes as the final status #3241
echo.Response.WriteHeader handles every status code as final: it runs Before hooks, stores Status, and sets Committed = true. A handler that sends 103 Early Hints (supported by net/http since Go 1.19) therefore can't send its real status afterwards:
The 201 is dropped with echo: response already written to client, net/http sends an implicit 200, and Response.Status and the request logger report 103.
Expected
Informational codes (100–199, except 101 Switching Protocols, which is final) should go straight to the underlying writer. They shouldn't run Before hooks or change Status or Committed, so the handler can still send the final status.
Activity