diff --git a/api/service/route.go b/api/service/route.go index fcb4a26277..2ad9699f7d 100644 --- a/api/service/route.go +++ b/api/service/route.go @@ -493,7 +493,7 @@ func ToApisixRequest(routeRequest *RouteRequest) *ApisixRouteRequest { // upstream path proxyPath := routeRequest.UpstreamPath if proxyPath != nil { - if proxyPath.UPathType == UPATHTYPE_STATIC { + if proxyPath.UPathType == UPATHTYPE_STATIC || proxyPath.UPathType == "" { pr.Uri = proxyPath.To pr.RegexUri = nil } else {