support https

Please merge this commit.
Thank you.