net/http/httputil: RoundTripper leaving side effect status code 1XX in responseWriter #67534
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.3 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
I upgraded go from 1.22.1 to 1.22.3, and part of my http proxy response modifier stopped working correctly.
What did you see happen?
I setup my ReverseProxy like so:
In my function
ctx.MyModifyResponse
I check the status code of myhttp.ResponseWriter
to verify nothing was written previously.But now since 972870d has been implemented, when a request returns intermediate 100 responses, the last 100 response stays in the status field of my
ReponseWriter
, which causesMyModifyResponse
to fail.What did you expect to see?
I expected the
ResponseWriter
to return to its original state once thetransport.RoundTrip(outreq)
is done, and the status returned is not1XX
.The text was updated successfully, but these errors were encountered: