Skip to content

Conversation

storyicon
Copy link
Contributor

this PR is used to solve: #26004

Signed-off-by: storyicon [email protected]

@storyicon storyicon requested review from fjl and holiman as code owners October 21, 2022 11:21
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the idea is fine. Curious what @fjl thinks...?

storyicon and others added 4 commits October 23, 2022 10:17
Co-authored-by: Martin Holst Swende <[email protected]>
Co-authored-by: Martin Holst Swende <[email protected]>
Signed-off-by: storyicon <[email protected]>
@storyicon
Copy link
Contributor Author

storyicon commented Oct 23, 2022

@holiman thanks, I adopted some of your suggestions and simplified the design. Now it has become clearer about the requirement of http.Header injection.

@storyicon storyicon requested a review from holiman October 23, 2022 03:52
@storyicon storyicon requested a review from holiman October 25, 2022 05:57
@holiman
Copy link
Contributor

holiman commented Oct 25, 2022

I pushed a change now, mostly small things, but one functional change -- it now supports multiple contexts setting headers sequentially. Please take a look.

I think this is ok now, leaving it to @fjl to decide about

@storyicon
Copy link
Contributor Author

I have also made some changes to make the logic clearer. At the same time, NewContextWithHeaders will not modify the http.Header passed in by the user. Now it should be OK.

storyicon and others added 2 commits October 29, 2022 17:42
Co-authored-by: Martin Holst Swende <[email protected]>
Co-authored-by: Martin Holst Swende <[email protected]>
@storyicon
Copy link
Contributor Author

@holiman What else can we do to promote this? It seems that @fjl missed some message.

@holiman
Copy link
Contributor

holiman commented Nov 8, 2022 via email

@storyicon
Copy link
Contributor Author

Nah, don't worry, he'll get to it eventually. We are slow with PRs often, let it take it's time

Thank you for actively addressing this issue.

@fjl fjl added this to the 1.11.0 milestone Nov 16, 2022
@fjl fjl merged commit add337e into ethereum:master Nov 16, 2022
shekhirin pushed a commit to shekhirin/go-ethereum that referenced this pull request Jun 6, 2023
This adds a way to specify HTTP headers per request.

Co-authored-by: Martin Holst Swende <[email protected]>
Co-authored-by: Felix Lange <[email protected]>
gzliudan pushed a commit to gzliudan/XDPoSChain that referenced this pull request Apr 24, 2025
This adds a way to specify HTTP headers per request.

Co-authored-by: Martin Holst Swende <[email protected]>
Co-authored-by: Felix Lange <[email protected]>
gzliudan added a commit to XinFinOrg/XDPoSChain that referenced this pull request Apr 24, 2025
)

This adds a way to specify HTTP headers per request.

Co-authored-by: storyicon <[email protected]>
Co-authored-by: Martin Holst Swende <[email protected]>
Co-authored-by: Felix Lange <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants