Skip to content

Commit

Permalink
fixed action,add group
Browse files Browse the repository at this point in the history
  • Loading branch information
joy12825 committed Oct 12, 2023
1 parent 40dbeb7 commit 7bbee00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ghttp/ghttp_server_router_serve.go
Expand Up @@ -91,7 +91,7 @@ func (s *Server) getHandlersWithCache(r *Request) (parsedItems []*HandlerItemPar
// searchHandlers retrieve and returns the routers with given parameters.
// Note that the returned routers contain serving handler, middleware handlers and hook handlers.
func (s *Server) searchHandlers(method, group, action, domain string) (parsedItems []*HandlerItemParsed, serveItem *HandlerItemParsed, hasHook, hasServe bool) {
if len(group) == 0 || len(action) == 0 {
if len(group) == 0 {
return nil, nil, false, false
}
// In case of double '/' URI, for example:
Expand Down

0 comments on commit 7bbee00

Please sign in to comment.