Fix up empty paste bug
This commit is contained in:
parent
c92d72b790
commit
a8b18ae11c
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