Fixing WebSocket switching protocol problems