Merge pull request #102572 from JonZeolla/remove-insecure-curl-suggestion

Remove -k from toCurl output
This commit is contained in:
Kubernetes Prow Robot
2021-06-03 15:53:02 -07:00
committed by GitHub
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")},
},
}