From 3fac2535364b262c250f9bb1b8e433f2666f34af Mon Sep 17 00:00:00 2001 From: Di Xu Date: Tue, 10 Mar 2015 21:58:25 +0800 Subject: [PATCH] Redirector.ResourceLocation shouldn't return `"", nil` --- pkg/apiserver/proxy.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/apiserver/proxy.go b/pkg/apiserver/proxy.go index 4666fa970b9..88e052cdb7d 100644 --- a/pkg/apiserver/proxy.go +++ b/pkg/apiserver/proxy.go @@ -147,12 +147,6 @@ func (r *ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { httpCode = status.Code 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) if err != nil {