fixing up http/https/ws/wss