You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/07/15 03:44:38 UTC

[GitHub] [apisix] spacewander commented on a change in pull request #4606: fix: correct the return value checking of pcall, since apisix_ngx_cli…

spacewander commented on a change in pull request #4606:
URL: https://github.com/apache/apisix/pull/4606#discussion_r670110395



##########
File path: apisix/plugins/client-control.lua
##########
@@ -48,7 +48,7 @@ end
 
 
 function _M.rewrite(conf, ctx)
-    if not apisix_ngx_client then
+    if not ok then

Review comment:
       The module is loaded by default, and "resty.apisix.client" is only included in APISIX-OpenResty. So showing an error message will annoy people who use regular OpenResty.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org