mirror of https://github.com/daffainfo/nuclei.git
fix curl command (#4014)
parent
4c1c5301b9
commit
0776b2e237
|
@ -641,7 +641,7 @@ func (request *Request) executeRequest(input *contextargs.Context, generatedRequ
|
|||
if !request.Unsafe && resp != nil && generatedRequest.request != nil && resp.Request != nil && !request.Race {
|
||||
bodyBytes, _ := generatedRequest.request.BodyBytes()
|
||||
resp.Request.Body = io.NopCloser(bytes.NewReader(bodyBytes))
|
||||
command, err := http2curl.GetCurlCommand(resp.Request)
|
||||
command, err := http2curl.GetCurlCommand(generatedRequest.request.Request)
|
||||
if err == nil && command != nil {
|
||||
curlCommand = command.String()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue