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
ya55en
changed the title
HTTP::Server::Response#reset leaves the status message untouchedResponse#reset leaves the status message untouched
Feb 15, 2023
It's more of an implementation detail than something you should consider calling yourself within an HTTP::Handler or something. It's probably still worth fixing, but I'd be curious if you can actually reproduce this bug without calling it directly.
Bug Report
It seems
HTTP::Server::Response
are reused and re-set on reuse, however, it seems the status message is left untouched on#reset
:This yields:
and I would expect just a "200 OK" twice, because of the
#reset
call. (Or do I miss something?)Environment:
The text was updated successfully, but these errors were encountered: