Fixed bug

HTTPS wasn't considered!