You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Revolyssup (via GitHub)" <gi...@apache.org> on 2023/07/02 18:36:56 UTC
[GitHub] [apisix] Revolyssup commented on a diff in pull request #9710: feat: allow sending headers upstream returned by OPA server
Revolyssup commented on code in PR #9710:
URL: https://github.com/apache/apisix/pull/9710#discussion_r1249689708
##########
apisix/plugins/opa.lua:
##########
@@ -125,6 +127,11 @@ function _M.access(conf, ctx)
end
return status_code, reason
+ else if conf.send_header_upstream and result.headers then
+ for key,value in pairs(result.headers) do
+ core.request.set_header(ctx,key,value)
+ end
+ end
Review Comment:
What else do you propose? How to select which ones to proxy?
--
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