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
M pkg/apps/pgs/web.go
+4, -0
 1@@ -317,6 +317,10 @@ func (web *WebRouter) checkHandler(w http.ResponseWriter, r *http.Request) {
 2 	logger := web.Cfg.Logger
 3 
 4 	hostDomain := r.URL.Query().Get("domain")
 5+	if hostDomain == "" {
 6+		w.WriteHeader(http.StatusNotFound)
 7+		return
 8+	}
 9 	appDomain := strings.Split(cfg.Domain, ":")[0]
10 
11 	// we do *not* want to cache this handler