mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-12 05:23:42 +08:00
81e26970a3
* Move handling of headers around to prevent memory use spikes While debugging #782, I noticed that using http2 and max_fails=0, X-Forwarded-For grew infinitely when an upstream request failed after refreshing the test page. This change ensures that headers are only set once per request rather than appending in a time-terminated loop. * Refactor some code into its own function |
||
---|---|---|
.. | ||
policy_test.go | ||
policy.go | ||
proxy_test.go | ||
proxy.go | ||
reverseproxy.go | ||
upstream_test.go | ||
upstream.go |