Re-add HTTPS check