tzssangglass commented on a change in pull request #6070:
URL: https://github.com/apache/apisix/pull/6070#discussion_r781861816
##########
File path: apisix/plugins/grpc-web.lua
##########
@@ -60,6 +59,9 @@ function _M.check_schema(conf)
end
function _M.access(conf, ctx)
+ -- set context variable mime
+ ctx.grpc_web_mime = core.request.header(ctx, "Content-Type")
Review comment:
better to add a comment explaining why you need to set the
ctx.grpc_web_mime in advance
--
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]