Added support for headers and cookies in WebSocket upgrade request