Redirector.ResourceLocation shouldn't return "", nil

This commit is contained in:
Di Xu 2015-03-10 21:58:25 +08:00
parent f4b10b3979
commit 3fac253536

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 {