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 432b5df commit 40dbeb7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion net/ghttp/ghttp_server_router_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,14 @@ func (s *Server) searchHandlers(method, group, action, domain string) (parsedIte
i++
}
// Split the URL.path to separate parts.
array := []string{action}
var array []string
if len(action) > 0 {
array = []string{action}
} else if strings.EqualFold("/", group) {
array = []string{"/"}
} else {
array = strings.Split(group[1:], "/")
}
var (
lastMiddlewareElem *glist.Element
parsedItemList = glist.New()
Expand Down

0 comments on commit 40dbeb7

Please sign in to comment.