Skip to content

Commit c35ba55

Browse files
committed
Add missing return to handleError in admin server
Thanks to @Wernerina's LLM for finding this bug
1 parent 5d189af commit c35ba55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

admin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,7 @@ func (h adminHandler) serveHTTP(w http.ResponseWriter, r *http.Request) {
859859
Err: errors.New("invalid origin 'null'"),
860860
Message: "Buggy browser is sending null Origin header.",
861861
})
862+
return
862863
}
863864

864865
if h.enforceHost {

0 commit comments

Comments
 (0)