Sec-WebSocket-Protocol header treatment

Fixed bug of treatment of  Sec-WebSocket-Protocol  header.