From eee454aac2058a4d255e3a487c8412c03eae55ae Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Fri, 8 Nov 2024 05:38:46 +0100 Subject: hswc: ignore bots --- hswc/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hswc') 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 } -- cgit v1.2.3-70-g09d2