Allow https, too

Also a bit easier to extend down detection to more sophisticated methods.
Merge pull request #126 from KaneTW/patch-1

Allow https, too