mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
use correct path for proxy replacements
This commit is contained in:
parent
78d05e5307
commit
ec58e6d78e
@ -190,7 +190,7 @@ func (r *ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
|||||||
proxy.Transport = &proxyTransport{
|
proxy.Transport = &proxyTransport{
|
||||||
proxyScheme: req.URL.Scheme,
|
proxyScheme: req.URL.Scheme,
|
||||||
proxyHost: req.URL.Host,
|
proxyHost: req.URL.Host,
|
||||||
proxyPathPrepend: path.Join(r.prefix, "ns", namespace, resource, id),
|
proxyPathPrepend: requestInfo.URLPath(),
|
||||||
}
|
}
|
||||||
proxy.FlushInterval = 200 * time.Millisecond
|
proxy.FlushInterval = 200 * time.Millisecond
|
||||||
proxy.ServeHTTP(w, newReq)
|
proxy.ServeHTTP(w, newReq)
|
||||||
|
Loading…
Reference in New Issue
Block a user