Files
asterisk/res
David M. Lee ae292e7e54 ARI: Fix WebSocket response when subprotocol isn't specified
When I moved the ARI WebSocket from /ws to /ari/events, I added code to
allow a WebSocket to connect without specifying the subprotocol if
there's only one subprotocol handler registered for the WebSocket.

Naively, I coded it to always respond with the subprotocol in use.
Unfortunately, according to RFC 6455, if the server's response includes
a subprotocol header field that "indicates the use of a subprotocol that
was not present in the client's handshake [...], the client MUST _Fail
the WebSocket Connection_.", emphasis theirs.

This patch correctly omits the Sec-WebSocket-Protocol if one is not
specified by the client.

(closes issue ASTERISK-22441)
Review: https://reviewboard.asterisk.org/r/2828/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@399039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-09-13 14:18:36 +00:00
..
2013-08-02 15:01:37 +00:00
2013-09-06 18:49:09 +00:00
2013-07-27 23:11:02 +00:00
2012-06-25 15:55:25 +00:00
2013-08-30 17:57:16 +00:00
2013-08-27 19:15:49 +00:00
2012-09-21 17:14:59 +00:00
2012-10-14 21:44:27 +00:00
2013-09-06 21:17:24 +00:00
2012-10-14 21:44:27 +00:00
2012-10-14 21:44:27 +00:00
2012-10-14 21:44:27 +00:00
2013-09-12 15:23:10 +00:00
2013-07-30 13:46:16 +00:00
2013-08-30 19:20:47 +00:00
2012-10-14 21:44:27 +00:00
2012-10-14 21:44:27 +00:00
2013-05-15 12:42:04 +00:00
2013-08-27 19:15:49 +00:00