aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hswc/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hswc/main.go b/hswc/main.go
index 275aac6..53725a5 100644
--- a/hswc/main.go
+++ b/hswc/main.go
@@ -31,7 +31,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
return
}
text := r.FormValue("text")
- if len(text) > 64<<10 {
+ if text == "" || len(text) > 64<<10 {
w.WriteHeader(http.StatusBadRequest)
return
}