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>2025-11-30 19:01:47 +0100
commit0897536bbfcf347c02640ffd1407fade7fa7b605 (patch)
treece5a476cbf658f1313da841bff7fc63b41d522f1
parentf95a5cab6a0aa423d2ec88573fabdb18abd47f72 (diff)
downloadhaven-0897536bbfcf347c02640ffd1407fade7fa7b605.tar.gz
haven-0897536bbfcf347c02640ffd1407fade7fa7b605.tar.xz
haven-0897536bbfcf347c02640ffd1407fade7fa7b605.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
}