Fix working with https.