change websocket protocol based on http protocol.
make requests to freegeoip.net protocol-relative.