net/http: Transport sends two "Connection: close" headers #28886
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
If you set DisableKeepAlives http.Transport property to true AND
set http.Request Close property to true
This results in sending two Connection-Close headers by the http.Client.
The source code to reproduce this bug is here:
https://github.com/hexdigest/connectionclose
What did you expect to see?
I expect to see only one Connection: close header on the server side.
What did you see instead?
I see two Connection: close headers on the server side.
The text was updated successfully, but these errors were encountered: