Nil request body with retry
This commit is contained in:
parent
37d8e32e0b
commit
3f044c48fa
4 changed files with 6 additions and 3 deletions
|
@ -71,7 +71,7 @@ func (b *BackendConfig) newRequest(serverURL *url.URL) (*http.Request, error) {
|
|||
|
||||
u.Path += b.Path
|
||||
|
||||
return http.NewRequest(http.MethodGet, u.String(), nil)
|
||||
return http.NewRequest(http.MethodGet, u.String(), http.NoBody)
|
||||
}
|
||||
|
||||
// this function adds additional http headers and hostname to http.request
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue