Commit 1c474b9

Eric Bower  ·  2026-04-20 20:01:24 -0400 EDT
parent eaec14c
fix(pgs): check handler fast bail when domain is empty
1 files changed,  +4, -0
+4, -0
......@@ -317,6 +317,10 @@ func (web *WebRouter) checkHandler(w http.ResponseWriter, r *http.Request) {
317317 logger := web.Cfg.Logger
318318
319319 hostDomain := r.URL.Query().Get("domain")
320+ if hostDomain == "" {
321+ w.WriteHeader(http.StatusNotFound)
322+ return
323+ }
320324 appDomain := strings.Split(cfg.Domain, ":")[0]
321325
322326 // we do *not* want to cache this handler