This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 6160667df fix(admin): fix wrong http code for patch method (#8855)
6160667df is described below

commit 6160667df1aa6d122bf107302b8494ddbcb73233
Author: dongjunduo <[email protected]>
AuthorDate: Fri Feb 17 11:35:48 2023 +0800

    fix(admin): fix wrong http code for patch method (#8855)
---
 apisix/core/etcd.lua | 1 -
 t/admin/ssl.t        | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/apisix/core/etcd.lua b/apisix/core/etcd.lua
index d48eb9aa1..99e4bbb6b 100644
--- a/apisix/core/etcd.lua
+++ b/apisix/core/etcd.lua
@@ -507,7 +507,6 @@ function _M.atomic_set(key, value, ttl, mod_revision)
         key = key,
         value = value,
     }
-    res.status = 201
 
     return res, nil
 end
diff --git a/t/admin/ssl.t b/t/admin/ssl.t
index 1a3dba80b..2e69e0b46 100644
--- a/t/admin/ssl.t
+++ b/t/admin/ssl.t
@@ -643,7 +643,7 @@ GET /t
                 core.json.encode({create_time = 0, update_time = 1})
             )
 
-            if code ~= 201 then
+            if code ~= 200 then
                 ngx.status = code
                 ngx.say(body)
                 return

Reply via email to