From e3813daa807e16f4dd3e99df76f21040613f432a Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Thu, 13 Nov 2025 14:17:45 -0300 Subject: [PATCH] fix(multiplexer): EnsureMethod string comparasion not properly checking method --- multiplexer/patterns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multiplexer/patterns.go b/multiplexer/patterns.go index 64a270f..1a70398 100644 --- a/multiplexer/patterns.go +++ b/multiplexer/patterns.go @@ -107,7 +107,7 @@ func EnsureMethod(methods ...string) PatternRule { } return func(s string) { sp := strings.Split(s, " ") - if len(sp) <= 0 { + if len(sp) < 2 { panic(fmt.Sprintf("method: pattern %q doesn't has a method", s)) } if methods != nil {