@marcel91200 / caddy Mirror · read-only / commits / c35ba558
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 11, 13:30 UTC

Add missing return to` handleError` in admin server

Thanks to @Wernerina's LLM for finding this bug

Matthew Holt committed Mar 25, 2026 at 16:33 UTC c35ba5588d2ccf85bb3767811a65eac819dd277b
1 file changed +1
admin.go
+1
@@ -859,6 +859,7 @@ func (h adminHandler) serveHTTP(w http.ResponseWriter, r *http.Request) {
859 Err: errors.New("invalid origin 'null'"),
860 Message: "Buggy browser is sending null Origin header.",
861 })
862 + return
863 }
864
865 if h.enforceHost {