Fixed issue with redirect_uri with https

Regarding issue #148