Commit Graph

3 Commits

Author SHA1 Message Date
Peter J. Holzer 4af21972a9 Add ProxyHeadersMiddleware to parse X-Forwarded-Proto header
Starlett will automatically generate redirects to add or remove trailing
slashes as appropriate. To do this it needs to know the protocol,
however. This is usually passed by the proxy in the X-Forwarded-Proto
header.
2021-08-01 17:01:52 +02:00
Peter J. Holzer 5ddf0bc9c5 Require gunicorn 2021-08-01 17:00:57 +02:00
Peter J. Holzer c966bef31a Minimal fastapi api to test redirects 2021-08-01 13:44:06 +02:00