removing dump request for race conditions
@@ -218,8 +218,13 @@ func (r *Request) executeRequest(reqURL string, request *generatedRequest, dynam
var (
resp *http.Response
fromcache bool
+ dumpedRequest []byte
+ err error
)
- dumpedRequest, err := dump(request, reqURL)
+
+ // For race conditions we can't dump the request body at this point as it's already waiting the open-gate event
+ if !request.original.Race {
+ dumpedRequest, err = dump(request, reqURL)
if err != nil {
return err
}
@@ -228,6 +233,7 @@ func (r *Request) executeRequest(reqURL string, request *generatedRequest, dynam
gologger.Info().Msgf("[%s] Dumped HTTP request for %s\n\n", r.options.TemplateID, reqURL)
gologger.Print().Msgf("%s", string(dumpedRequest))
}
+ }
var formedURL string
var hostname string
