Allow https, too

Also a bit easier to extend down detection to more sophisticated methods.