Skip to content

Commit 24cadac

Browse files
authored
fix: Handle underscore characters in paths (#2164)
Signed-off-by: Qi Zhang <[email protected]>
1 parent 3da4ace commit 24cadac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/controller/apigateway/api_gateway_route.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ func (g Struct) CreateHTTPAPIRoute(w http.ResponseWriter, r *http.Request) {
209209

210210
routeName = strings.ReplaceAll(routeName, "/", "p-p")
211211
routeName = strings.ReplaceAll(routeName, "*", "s-s")
212+
routeName = strings.ReplaceAll(routeName, "_", "")
212213
//name := r.URL.Query().Get("name")
213214

214215
for _, host := range apisixRouteHTTP.Match.Hosts {

0 commit comments

Comments
 (0)