Use https when necessary