Skip to content

Commit

Permalink
fix curl command (#4014)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir authored Aug 1, 2023
1 parent 4c1c530 commit 0776b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/pkg/protocols/http/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 0776b2e

Please sign in to comment.