mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 04:32:37 +00:00
use correct path for proxy replacements
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user