fix error with openid provider when server has https enabled (fixes #43)