mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Redirector.ResourceLocation shouldn't return "", nil
This commit is contained in:
parent
f4b10b3979
commit
3fac253536
@ -147,12 +147,6 @@ func (r *ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
|||||||
httpCode = status.Code
|
httpCode = status.Code
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if location == "" {
|
|
||||||
httplog.LogOf(req, w).Addf("ResourceLocation for %v returned ''", id)
|
|
||||||
notFound(w, req)
|
|
||||||
httpCode = http.StatusNotFound
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
destURL, err := url.Parse(location)
|
destURL, err := url.Parse(location)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user