diff options
author | Francis Lavoie <lavofr@gmail.com> | 2021-05-12 16:19:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 14:19:08 -0600 |
commit | aef8d4decceba3371d6722a81e17cd5f94162116 (patch) | |
tree | 73de0d6094ef00dab99e26c4bef997605685e491 /caddyconfig | |
parent | 37718560c1bf8e330d18edb2e663e64a624dee8e (diff) |
reverseproxy: Set the headers in the replacer before `handle_response` (#4165)
Turns out this was an oversight, we assumed we could use `{http.response.header.*}` but that doesn't work because those are grabbed from the response writer, and we haven't copied any headers into the response writer yet.
So the fix is to set all the response headers into the replacer at a new namespace before running the handlers.
This adds the `{http.reverse_proxy.header.*}` replacer.
See https://caddy.community/t/empty-http-response-header-x-accel-redirect/12447
Diffstat (limited to 'caddyconfig')
0 files changed, 0 insertions, 0 deletions