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/07/01 01:50:37 UTC

[incubator-apisix-dashboard] branch master updated: fix use Put method when upstream update (#291)

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 3c3ed5d  fix use Put method when upstream update (#291)
3c3ed5d is described below

commit 3c3ed5d3915dcb866ca58f995e8054f06f7da895
Author: kv <gx...@163.com>
AuthorDate: Wed Jul 1 09:50:25 2020 +0800

    fix use Put method when upstream update (#291)
---
 api/service/upstream.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/service/upstream.go b/api/service/upstream.go
index 466045b..2b0a851 100644
--- a/api/service/upstream.go
+++ b/api/service/upstream.go
@@ -189,7 +189,7 @@ func (aur *ApisixUpstreamRequest) Update() (*ApisixUpstreamResponse, 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 {