We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f6633 commit 1a30e12Copy full SHA for 1a30e12
pkg/queue/health/probe.go
@@ -25,6 +25,7 @@ import (
25
"net/http"
26
"net/url"
27
"strconv"
28
+ "strings"
29
"syscall"
30
"time"
31
@@ -111,7 +112,7 @@ var transport = func() *http.Transport {
111
112
}()
113
114
func getURL(config HTTPProbeConfigOptions) (*url.URL, error) {
- return url.Parse(string(config.Scheme) + "://" + net.JoinHostPort(config.Host, config.Port.String()) + config.Path)
115
+ return url.Parse(string(config.Scheme) + "://" + net.JoinHostPort(config.Host, config.Port.String()) + "/" + strings.TrimPrefix(config.Path, "/"))
116
}
117
118
// http2UpgradeProbe checks that an HTTP with HTTP2 upgrade request
0 commit comments