Update app.php

Fixes issues with various hosts where HTTPS check may fail