[PATCH 2/2] Make HTTPS check work with mod_wsgi