caddy/middleware
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
..
2016-03-21 21:46:41 -06:00
2016-04-20 13:08:31 +02:00
2016-03-26 21:05:19 +00:00
2016-03-26 21:14:54 +00:00
2016-03-17 22:29:58 +01:00
2016-03-17 16:42:28 -06:00
2015-11-15 11:06:50 -07:00
2016-03-26 21:05:19 +00:00
2016-04-18 09:43:28 -06:00