diff --git a/api/handlers.go b/api/handlers.go index a5e468331c..b2c552b8d5 100644 --- a/api/handlers.go +++ b/api/handlers.go @@ -423,6 +423,7 @@ func proxyImageAndForceRefresh(c *context, w http.ResponseWriter, r *http.Reques if image == nil { httpError(w, fmt.Sprintf("No such image: %s", name), http.StatusNotFound) + return } cb := func(resp *http.Response) {