Fix up empty paste bug

This commit is contained in:
Eliot Whalan 2016-06-23 14:57:07 +10:00
parent b866d1a700
commit 7f6ae1bcc7
1 changed files with 1 additions and 0 deletions

View File

@ -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{