caddy/modules/caddyhttp/reverseproxy
Francis Lavoie aef8d4decc
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
2021-05-12 14:19:08 -06:00
..
fastcgi reverseproxy: Add `handle_response` blocks to `reverse_proxy` (#3710) (#4021) 2021-05-02 12:39:06 -06:00
admin.go reverseproxy: Admin endpoint for reporting upstream statuses (#4125) 2021-04-21 13:43:34 -06:00
caddyfile.go reverseproxy: Add `handle_response` blocks to `reverse_proxy` (#3710) (#4021) 2021-05-02 12:39:06 -06:00
command.go
healthchecks.go reverseproxy: Implement health_uri, deprecate health_path, supports query (#4050) 2021-03-29 18:36:40 -06:00
hosts.go
httptransport.go reverseproxy: Response buffering & configurable buffer size 2021-02-09 14:15:04 -07:00
reverseproxy.go reverseproxy: Set the headers in the replacer before `handle_response` (#4165) 2021-05-12 14:19:08 -06:00
selectionpolicies.go reverseproxy: fix hash selection policy (#4137) 2021-04-29 10:52:22 -06:00
selectionpolicies_test.go reverseproxy: Minor logging improvements 2021-05-05 14:52:24 -06:00
streaming.go reverseproxy: Minor logging improvements 2021-05-05 14:52:24 -06:00
streaming_test.go ci: Use golangci's github action for linting (#3794) 2020-11-22 14:50:29 -07:00