diff --git a/transport/round_trippers.go b/transport/round_trippers.go index cd0a4455..818fd52d 100644 --- a/transport/round_trippers.go +++ b/transport/round_trippers.go @@ -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 diff --git a/transport/round_trippers_test.go b/transport/round_trippers_test.go index 10f7132c..f9ab5f57 100644 --- a/transport/round_trippers_test.go +++ b/transport/round_trippers_test.go @@ -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")}, }, }