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



##########
File path: apisix/plugins/consumer-restriction.lua
##########
@@ -105,7 +106,11 @@ local function is_method_allowed(allowed_methods, method, 
user)
 end
 
 local function reject(conf)
-    return conf.rejected_code, { message = "The " .. conf.type .. " is 
forbidden." }
+    local reject_message = "The " .. conf.type .. " is forbidden." ;

Review comment:
       We can check `conf.reject_message` before creating new string?




-- 
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-unsubscr...@apisix.apache.org

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


Reply via email to