You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/06/29 09:05:22 UTC

[incubator-apisix-dashboard] branch master updated: use put method when update route in apisix (#287)

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 3084980  use put method when update route in apisix (#287)
3084980 is described below

commit 30849809d6e5b361b089303bf01bb0afae9de8ad
Author: kv <gx...@163.com>
AuthorDate: Mon Jun 29 17:05:11 2020 +0800

    use put method when update route in apisix (#287)
---
 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 ce518d4..e140455 100644
--- a/api/service/route.go
+++ b/api/service/route.go
@@ -102,7 +102,7 @@ func (arr *ApisixRouteRequest) Update(rid string) (*ApisixRouteResponse, error)
 		return nil, err
 	} else {
     fmt.Println(string(b))
-		if resp, err := utils.Patch(url, b); err != nil {
+		if resp, err := utils.Put(url, b); err != nil {
 			logger.Error(err.Error())
 			return nil, err
 		} else {