Use complete URI scheme for https

Bug fix when using HTTPS.