This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 749f804 fix: proxy-path default type is static (#318)
749f804 is described below
commit 749f80498ffe6a974296b802b9992d410f940b1b
Author: kv <[email protected]>
AuthorDate: Mon Jul 13 19:52:57 2020 +0800
fix: proxy-path default type is static (#318)
---
api/service/route.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/api/service/route.go b/api/service/route.go
index fcb4a26..2ad9699 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 {