net/http: upon http redirect, Request.GetBody is always nil #73439
Labels
BugReport
Issues describing a possible bug in the Go implementation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version devel go1.25-252c939445 Fri Apr 18 08:30:30 2025 -0700 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Implement a http.RoundTripper that leverages http.Request.GetBody. Handle a server that returns 307/308 on a POST.
What did you see happen?
http.Request.GetBody is always nil after a HTTP redirect.
What did you expect to see?
http.Request.GetBody is copied over so the RoundTripper can rewind the request body if needed.
The text was updated successfully, but these errors were encountered: