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> | 2024-11-08 05:38:46 +0100 |
commit | eee454aac2058a4d255e3a487c8412c03eae55ae (patch) | |
tree | cc69a0930e218f68764ce21b55f801adbe6ca89d /hswc | |
parent | 1a60249cfef4a5afb1d07ce26c2d622ee2838ecf (diff) | |
download | haven-master.tar.gz haven-master.tar.xz haven-master.zip |
Diffstat (limited to 'hswc')
-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 } |