Skip to content

Conversation

@helenamariano
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Related Issue
Need Doc update no

Describe your change

This change clones the http headers when making a new http request. Previously the same instance of the header map would be used for all requests.

What problem is this fixing?

This fixes a panic due to concurrent map write that can occur if you have a custom transport.Requester that adds additional headers to the request.

@dhowden
Copy link

dhowden commented Feb 28, 2024

LGTM (we paired on this fix).

Those tests appear unrelated (they seem to be flakey). I've tried to correct this before (#741) but didn't get very far. We should look into this on a separate issue.

@helenamariano helenamariano merged commit 835301c into master Feb 28, 2024
@helenamariano helenamariano deleted the clone_headers branch February 28, 2024 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants