mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #102572 from JonZeolla/remove-insecure-curl-suggestion
Remove -k from toCurl output
This commit is contained in:
commit
be5874f959
@ -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
|
// debuggingRoundTripper will display information about the requests passing
|
||||||
|
@ -480,7 +480,7 @@ func TestDebuggingRoundTripper(t *testing.T) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
levels: []DebugLevel{DebugCurlCommand},
|
levels: []DebugLevel{DebugCurlCommand},
|
||||||
expectedOutputLines: []string{fmt.Sprintf("curl -k -v -X")},
|
expectedOutputLines: []string{fmt.Sprintf("curl -v -X")},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user