mirror of
https://github.com/caddyserver/caddy.git
synced 2026-07-01 22:31:50 +00:00
* 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.go | ||
| policy_test.go | ||
| proxy.go | ||
| proxy_test.go | ||
| reverseproxy.go | ||
| upstream.go | ||
| upstream_test.go | ||