fix curl command (#4014)

dev
Dogan Can Bakir 2023-08-01 22:17:42 +03:00 committed by GitHub
parent 4c1c5301b9
commit 0776b2e237
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}