Merge pull request #5240 from xudifsd/rm-double-write-in-apiserver-proxy

Redirector.ResourceLocation shouldn't return `"", nil`
pull/6/head
Rohit Jnagal 2015-03-13 09:20:46 -07:00
commit 203f37a58a
1 changed files with 0 additions and 6 deletions

View File

@ -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 {