Fix next rule goto

This commit is contained in:
WeebDataHoarder
2025-04-01 07:11:43 +02:00
parent 8ed0f69a19
commit 35067a4329

View File

@@ -84,7 +84,6 @@ func (state *State) handleRequest(w http.ResponseWriter, r *http.Request) {
} }
for _, rule := range state.Rules { for _, rule := range state.Rules {
nextRule:
if out, _, err := rule.Program.Eval(env); err != nil { if out, _, err := rule.Program.Eval(env); err != nil {
//TODO error //TODO error
panic(err) panic(err)
@@ -150,6 +149,8 @@ func (state *State) handleRequest(w http.ResponseWriter, r *http.Request) {
} }
} }
} }
nextRule:
} }
state.Backend.ServeHTTP(w, r) state.Backend.ServeHTTP(w, r)