also check method when finding missing handlers

This commit is contained in:
Adrien Marquès 2020-03-22 16:37:43 +01:00
parent 97cf19d7b4
commit eef94ff998
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func (s Server) ToHTTPServer() (*httpServer, error) {
for _, service := range s.config.Services { for _, service := range s.config.Services {
found := false found := false
for _, handler := range s.handlers { for _, handler := range s.handlers {
if handler.GetPath() == service.Pattern { if handler.GetMethod() == service.Method && handler.GetPath() == service.Pattern {
found = true found = true
break break
} }