From becd8935be6eee7a86e2093cbae191f1fccc3cdc Mon Sep 17 00:00:00 2001 From: Cameron Moore Date: Fri, 20 Mar 2015 16:58:58 -0500 Subject: [PATCH] Fix infinite loop in NotRule.Evaluate --- hook/hook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hook/hook.go b/hook/hook.go index 669c177..db21e51 100644 --- a/hook/hook.go +++ b/hook/hook.go @@ -225,7 +225,7 @@ type NotRule Rules // Evaluate NotRule will return true if and only if ChildRule evaluates to false func (r NotRule) Evaluate(headers, query, payload *map[string]interface{}, body *[]byte) bool { - return !r.Evaluate(headers, query, payload, body) + return !Rules(r).Evaluate(headers, query, payload, body) } // MatchRule will evaluate to true based on the type