diff options
| author | Přemysl Eric Janouch <p@janouch.name> | 2024-11-08 05:38:46 +0100 |
|---|---|---|
| committer | Přemysl Eric Janouch <p@janouch.name> | 2025-11-30 19:01:47 +0100 |
| commit | 0897536bbfcf347c02640ffd1407fade7fa7b605 (patch) | |
| tree | ce5a476cbf658f1313da841bff7fc63b41d522f1 | |
| parent | f95a5cab6a0aa423d2ec88573fabdb18abd47f72 (diff) | |
| download | haven-0897536bbfcf347c02640ffd1407fade7fa7b605.tar.gz haven-0897536bbfcf347c02640ffd1407fade7fa7b605.tar.xz haven-0897536bbfcf347c02640ffd1407fade7fa7b605.zip | |
| -rw-r--r-- | hswc/main.go | 2 |
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 } |
