You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when dispatching request go-restful have 2 phases: detectWebService, and detectRoute.
there is a defect in detectWebService, where it ignores any regex pattern and treat them as matched with same score.
so holaWS and helloWS get same score, thus first holaWS wins.
now when detectRoute, it does regex matching, for all route tokens, include webservice root path.
holaRequest get perfectly matched, belloRequest failed to match any route in holaWS.
when dealing with multiple webservice in same container, and regex routeToken, go-restful have defect on selecting webservice.
here is a code snippit reproduce the issue: go playground link
output:
The text was updated successfully, but these errors were encountered: