ruanweihong-aaa commented on code in PR #14036:
URL: https://github.com/apache/apisix/pull/14036#discussion_r4292911366


##########
apisix/init.lua:
##########
@@ -1069,6 +1069,15 @@ function _M.grpc_access_phase()
     if api_ctx.enable_mirror == true and has_mod then
         apisix_ngx_client.enable_mirror()
     end
+
+    if api_ctx.client_max_body_size and has_mod then

Review Comment:
   谢谢指出,你说得对。已在提交 `3eccc1e8` 中删除多余的 `has_mod` 判断。`client-control` 只有在成功调用 
`set_client_max_body_size` 后,才会把限制值保存到请求上下文。



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to