Respect server protocol (HTTP or HTTPS)