We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 815fe94 commit 35cd6c5Copy full SHA for 35cd6c5
pkg/generated/restapi/configure_timestamp_server.go
@@ -110,7 +110,7 @@ const pingPath = "/ping"
110
func httpPingOnly() func(http.Handler) http.Handler {
111
f := func(h http.Handler) http.Handler {
112
fn := func(w http.ResponseWriter, r *http.Request) {
113
- if r.URL.Scheme != "https" && !strings.EqualFold(r.URL.Path, pingPath) {
+ if r.TLS == nil && !strings.EqualFold(r.URL.Path, pingPath) {
114
w.Header().Set("Content-Type", "text/plain")
115
w.WriteHeader(http.StatusNotFound)
116
w.Write([]byte("http server supports only the " + pingPath + " entrypoint")) //nolint:errcheck
0 commit comments