Update ws to wss when https