ruanweihong-aaa commented on code in PR #14036:
URL: https://github.com/apache/apisix/pull/14036#discussion_r4293618122
##########
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:
Thanks for pointing this out. I removed the redundant `has_mod` check in
`3eccc1e8`. `client-control` saves the limit in the request context only after
`set_client_max_body_size` succeeds.
--
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]