Fix up empty paste bug
This commit is contained in:
parent
b866d1a700
commit
7f6ae1bcc7
1
main.go
1
main.go
@ -136,6 +136,7 @@ func saveHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
lang := r.FormValue("lang")
|
lang := r.FormValue("lang")
|
||||||
if paste == "" {
|
if paste == "" {
|
||||||
http.Error(w, "Empty paste", 500)
|
http.Error(w, "Empty paste", 500)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
values := save(paste, lang)
|
values := save(paste, lang)
|
||||||
b := &Response{
|
b := &Response{
|
||||||
|
Loading…
Reference in New Issue
Block a user