aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-11-08 05:38:46 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-11-08 05:38:46 +0100
commiteee454aac2058a4d255e3a487c8412c03eae55ae (patch)
treecc69a0930e218f68764ce21b55f801adbe6ca89d
parent1a60249cfef4a5afb1d07ce26c2d622ee2838ecf (diff)
downloadhaven-eee454aac2058a4d255e3a487c8412c03eae55ae.tar.gz
haven-eee454aac2058a4d255e3a487c8412c03eae55ae.tar.xz
haven-eee454aac2058a4d255e3a487c8412c03eae55ae.zip
hswc: ignore botsHEADmaster
-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
}