-
in python,we can set host in headers to the value that different from the real host of http url,however,by my test,retryablehttp-go may not support this feature,so i advise retryablehttp-go to support this feature |
Beta Was this translation helpful? Give feedback.
Answered by
Mzack9999
Aug 3, 2022
Replies: 1 comment
-
@Nyx2022 This is already supported. You can do it either by setting req, _ := retryablehttp.NewRequest(http.MethodGet,"http://host",nil)
req.Host = "whatever"
req.Header.Set("Host", "whatever") |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ehsandeep
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Nyx2022 This is already supported. You can do it either by setting
request.Host="whatever"
or by setting the header directly: