mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
The interactive debugger was previously generating HTTP URLs even when on HTTPS. This is because it uses wsgi.url_scheme to determine which scheme to use when generating URLs and because we're using the paste server in development, this environment variable was not being set appropriately. PasteDeploy's PrefixMiddleware will set the variable correctly based on X-Forwarded-Scheme / X-Forwarded-Proto which we were already sending from haproxy.