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
commit be5874f959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")},
},
}