Remove -k from toCurl output

This commit is contained in:
Jon Zeolla 2021-06-03 15:11:03 -04:00
parent 0a865b6e6e
commit 5bf7bb52fe
2 changed files with 2 additions and 2 deletions

View File

@ -346,7 +346,7 @@ func (r *requestInfo) toCurl() string {
}
}
return fmt.Sprintf("curl -k -v -X%s %s '%s'", r.RequestVerb, headers, r.RequestURL)
return fmt.Sprintf("curl -v -X%s %s '%s'", r.RequestVerb, headers, r.RequestURL)
}
// debuggingRoundTripper will display information about the requests passing

View File

@ -480,7 +480,7 @@ func TestDebuggingRoundTripper(t *testing.T) {
},
{
levels: []DebugLevel{DebugCurlCommand},
expectedOutputLines: []string{fmt.Sprintf("curl -k -v -X")},
expectedOutputLines: []string{fmt.Sprintf("curl -v -X")},
},
}