PerlDancer/Dancer2 — pull request #590 by veryrusty (2014-05-22 13:20:35+00:00)
Title: Add behind proxy middleware

Collects the request header munging that was being done when building the Request object into a Plack middleware (wraps existing Plack middlewares for request munging behind proxies).

Simplifies the request object (before tackling #589) and adds support for reverse proxies from non-root paths (#571). Devs can (conditionally) apply the middleware (via Plack::Builder) to provide more flexibility than was previously possible (eg BehindProxy -> MultiLang middleware-> Dancer app ).

I'm not 100% convinced that `behind_proxy` should be a global config item though - yell if you have opinions :D