fix: actually get service handler

This commit is contained in:
Adrien Marquès 2020-03-22 14:05:32 +01:00
parent 2ee48560b6
commit ad6de97979
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ func (server httpServer) ServeHTTP(res http.ResponseWriter, req *http.Request) {
for _, handler := range server.handlers { for _, handler := range server.handlers {
if handler.GetMethod() == service.Method && handler.GetPath() == service.Pattern { if handler.GetMethod() == service.Method && handler.GetPath() == service.Pattern {
foundHandler = handler
found = true found = true
} }
} }