Unbreak 301 responses
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Tue, 15 Jan 2013 15:52:22 +0000 (16:52 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Tue, 15 Jan 2013 15:52:22 +0000 (16:52 +0100)
commitfd61aac7c719a875ecdcc2e43d7dcf561bc28eca
treed7820295f6b2f0d6008bcb4231706305c573bfa9
parent65969d3fb799765854ac5f57f85842c6ab523b21
Unbreak 301 responses

The move to werkzeug routing went pretty smooth, but one thing was
broken by accident: URLs without final slash result in a 301
werkzeug.routing.RequestRedirect response. We displayed it as a generic
error page rather than actually sending the redirect. Do that. One thing
it does though is to skip all meddlewares, which should be OK for a 301
response, but might need rework if we decide otherwise. With this, 301
responses with lacking final slash are unbroken again.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
mediagoblin/app.py