Use https. Taken from commit: 7539c1d24e296a2a112ddfca6207a27178f44f04.