Improved handling of sec websocket protocol headers.