Fix gi function

gi now requires https