caddy/middleware/proxy
Matt Holt 81e26970a3 proxy: Move handling of headers around to prevent memory usage spikes (#784)
* 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
2016-04-27 12:50:18 -06:00
..
policy_test.go Add common method for checking host availability 2016-03-10 14:42:19 +00:00
policy.go Add common method for checking host availability 2016-03-10 14:42:19 +00:00
proxy_test.go fixed req.URL.Path for unix: sockets 2016-03-28 22:18:14 +02:00
proxy.go proxy: Move handling of headers around to prevent memory usage spikes (#784) 2016-04-27 12:50:18 -06:00
reverseproxy.go proxy: Move handling of headers around to prevent memory usage spikes (#784) 2016-04-27 12:50:18 -06:00
upstream_test.go Add except to FastCGI. Minor refactor in proxy. 2016-03-20 08:02:17 +01:00
upstream.go Add except to FastCGI. Minor refactor in proxy. 2016-03-20 08:02:17 +01:00