From a3215d72fdf869ae82f77640c34a7c8803e4c841 Mon Sep 17 00:00:00 2001 From: Jon Zeolla Date: Thu, 3 Jun 2021 15:11:03 -0400 Subject: [PATCH] Remove -k from toCurl output Kubernetes-commit: 5bf7bb52fe4c95e09b812e6c43eeed7abdd6d90f --- transport/round_trippers.go | 2 +- transport/round_trippers_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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")}, }, }