Skip to content

Commit

Permalink
Merge pull request #5240 from xudifsd/rm-double-write-in-apiserver-proxy
Browse files Browse the repository at this point in the history
Redirector.ResourceLocation shouldn't return `"", nil`
  • Loading branch information
rjnagal committed Mar 13, 2015
2 parents 53b25a7 + 3fac253 commit 203f37a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/apiserver/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 203f37a

Please sign in to comment.