add support for https

I did this in master, hope that's okay. Let me know if you want a branch, but it's a simple change.