diff --git a/main.go b/main.go index 13f9ea5..a17e26a 100644 --- a/main.go +++ b/main.go @@ -136,6 +136,7 @@ func saveHandler(w http.ResponseWriter, r *http.Request) { lang := r.FormValue("lang") if paste == "" { http.Error(w, "Empty paste", 500) + return } values := save(paste, lang) b := &Response{