From 7f6ae1bcc7081d78a6638212af195272604b4566 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Thu, 23 Jun 2016 14:57:07 +1000 Subject: [PATCH] Fix up empty paste bug --- main.go | 1 + 1 file changed, 1 insertion(+) 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{