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 7bbee00 commit 6da8fab
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 @@ -72,7 +72,7 @@ func (s *Server) getHandlersWithCache(r *Request) (parsedItems []*HandlerItemPar
//}
var handlerCacheKey = s.serveHandlerKey(method, newPath, action, host)
value, err := s.serveCache.GetOrSetFunc(ctx, handlerCacheKey, func(ctx context.Context) (interface{}, error) {
parsedItems, serveItem, hasHook, hasServe = s.searchHandlers(method, actionGroup, action, host)
parsedItems, serveItem, hasHook, hasServe = s.searchHandlers(method, newPath, action, host)
if parsedItems != nil {
return &handlerCacheItem{parsedItems, serveItem, hasHook, hasServe}, nil
}
Expand Down

0 comments on commit 6da8fab

Please sign in to comment.