Set the http(s?) protocol correctly.