Skip to content

advised to add a feature #24

Answered by Mzack9999
Nyx2022 asked this question in Q&A
Discussion options

You must be logged in to vote

@Nyx2022 This is already supported. You can do it either by setting request.Host="whatever" or by setting the header directly:

req, _ := retryablehttp.NewRequest(http.MethodGet,"http://host",nil)
req.Host = "whatever"
req.Header.Set("Host", "whatever")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ehsandeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #20 on August 03, 2022 09:12.