handle https for gitlab
Merge pull request #201 from phunehehe/gitlab

handle https for gitlab