diff --git a/handlers/download.go b/handlers/download.go index e886eff..727a352 100644 --- a/handlers/download.go +++ b/handlers/download.go @@ -103,6 +103,7 @@ func Download(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { if currentAsset == nil { sendErrorWithCode(w, "Unable to find a release asset for your platform in the latest release.", 400) + return } log.Printf("User-Agent: %s", r.Header.Get("User-Agent"))