Added a condition for AppHarbor to check HTTPS connection.