From eef94ff9984406685cf90910d5a7f0349a2c3daa Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 22 Mar 2020 16:37:43 +0100 Subject: [PATCH] also check method when finding missing handlers --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index bc11038..10303fa 100644 --- a/server.go +++ b/server.go @@ -64,7 +64,7 @@ func (s Server) ToHTTPServer() (*httpServer, error) { for _, service := range s.config.Services { found := false for _, handler := range s.handlers { - if handler.GetPath() == service.Pattern { + if handler.GetMethod() == service.Method && handler.GetPath() == service.Pattern { found = true break }