You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/11/02 14:57:07 UTC

[GitHub] [apisix] rapiz1 commented on a change in pull request #5367: feat: support overwrite X-Forwarded-*

rapiz1 commented on a change in pull request #5367:
URL: https://github.com/apache/apisix/pull/5367#discussion_r741153768



##########
File path: apisix/init.lua
##########
@@ -269,9 +269,18 @@ end
 local function set_upstream_headers(api_ctx, picked_server)
     set_upstream_host(api_ctx, picked_server)
 
-    local hdr = core.request.header(api_ctx, "X-Forwarded-Proto")
-    if hdr then
-        api_ctx.var.var_x_forwarded_proto = hdr
+    local proxy_headers = {

Review comment:
       done




-- 
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