Fix gi function

gi now requires https
Merge pull request #3 from dasJ/master

Fix gi function