You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2021/09/02 07:41:20 UTC

[apisix] branch master updated: chore(client-control): return 501 when APISIX-OpenResty missed (#4963)

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 a1f2a42  chore(client-control): return 501 when APISIX-OpenResty missed (#4963)
a1f2a42 is described below

commit a1f2a425d4fcdd99b97197039d967b196ec87178
Author: RocFang <fa...@gmail.com>
AuthorDate: Thu Sep 2 15:41:14 2021 +0800

    chore(client-control): return 501 when APISIX-OpenResty missed (#4963)
---
 apisix/plugins/client-control.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apisix/plugins/client-control.lua b/apisix/plugins/client-control.lua
index 38f5dde..b6dff07 100644
--- a/apisix/plugins/client-control.lua
+++ b/apisix/plugins/client-control.lua
@@ -50,7 +50,7 @@ end
 function _M.rewrite(conf, ctx)
     if not ok then
         core.log.error("need to build APISIX-OpenResty to support client restriction")
-        return 503
+        return 501
     end
 
     if conf.max_body_size then