net/http: get-request with wrong content-length header breaks context #68571
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go1.22.5 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
If I send get-request with wrong Content-Length header, the server continues processing the request after the connection is lost. r.Context().Done() does not work in this case.
What did you expect to see?
r.Context().Done() returns value when the connection is closed.
The text was updated successfully, but these errors were encountered: