1
0
Fork 0

Nil request body with retry

This commit is contained in:
Ludovic Fernandez 2018-10-23 10:10:04 +02:00 committed by Traefiker Bot
parent 37d8e32e0b
commit 3f044c48fa
4 changed files with 6 additions and 3 deletions

View file

@ -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