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

@ -40,7 +40,7 @@ func Forward(config *types.Forward, w http.ResponseWriter, r *http.Request, next
}
}
forwardReq, err := http.NewRequest(http.MethodGet, config.Address, nil)
forwardReq, err := http.NewRequest(http.MethodGet, config.Address, http.NoBody)
tracing.LogRequest(tracing.GetSpan(r), forwardReq)
if err != nil {
tracing.SetErrorAndDebugLog(r, "Error calling %s. Cause %s", config.Address, err)