-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net/http/httputil: new resp.Body
returned by dump*
is nocloser
#67950
Comments
cc @neild |
I'm not certain if I understand correctly, but I think you're saying that closing the body should cause further reads to return an error.
|
according to the document, the
|
There is no requirement about how exactly a body implementation responds to misuse such as Read after Close. |
Go version
go version go1.22.0 windows/amd64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
test is still readable.
What did you expect to see?
the resp.Body is closed.
go/src/net/http/httputil/dump.go
Line 322 in 97bc577
should I open a PR?
The text was updated successfully, but these errors were encountered: