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
..
2012-07-31 20:21:43 +00:00
2013-09-09 19:02:27 +00:00
2013-08-22 21:09:52 +00:00
2013-09-10 18:03:45 +00:00
2013-08-02 15:01:37 +00:00
2013-09-06 18:49:09 +00:00
2013-08-30 13:17:12 +00:00
2013-07-27 23:11:02 +00:00
2013-08-30 13:17:12 +00:00
2012-06-25 15:55:25 +00:00
2011-07-14 20:28:54 +00:00
2010-04-02 18:57:58 +00:00
2013-08-30 17:57:16 +00:00
2010-04-02 18:57:58 +00:00
2013-08-27 19:15:49 +00:00
2013-08-27 19:15:49 +00:00
2013-08-21 16:23:59 +00:00
2013-08-02 14:36:32 +00:00
2013-08-30 13:39:35 +00:00
2013-07-27 23:11:02 +00:00
2013-07-27 23:11:02 +00:00
2013-08-02 14:36:32 +00:00
2013-08-30 13:17:12 +00:00
2013-08-02 14:36:32 +00:00
2013-08-30 13:39:35 +00:00
2013-07-27 23:11:02 +00:00
2012-05-18 14:43:44 +00:00
2012-10-31 14:58:44 +00:00
2013-03-28 23:59:20 +00:00
2013-01-30 14:19:29 +00:00
2013-06-25 01:12:58 +00:00
2010-04-02 18:57:58 +00:00
2013-08-01 13:49:34 +00:00
2012-12-13 15:37:45 +00:00
2012-08-08 22:39:40 +00:00
2013-04-27 12:01:29 +00:00
2013-04-27 12:01:29 +00:00
2013-05-10 20:28:18 +00:00
2013-05-07 18:30:55 +00:00
2013-04-27 12:01:29 +00:00
2013-06-17 03:00:38 +00:00
2011-07-14 20:28:54 +00:00
2013-08-18 02:55:54 +00:00
2012-09-21 17:14:59 +00:00
2010-07-21 19:11:32 +00:00
2012-10-14 21:44:27 +00:00
2013-05-27 01:33:12 +00:00
2013-06-23 19:19:30 +00:00
2010-05-21 15:15:58 +00:00
2012-07-13 16:49:40 +00:00
2012-07-13 18:41:07 +00:00
2013-03-27 14:28:36 +00:00
2013-08-23 15:42:27 +00:00
2012-07-13 16:49:40 +00:00
2012-04-17 18:57:40 +00:00
2013-09-13 14:18:36 +00:00
2013-07-03 16:32:00 +00:00
2013-09-06 21:17:24 +00:00
2011-12-05 14:47:11 +00:00
2012-10-14 21:44:27 +00:00
2013-06-17 03:00:38 +00:00
2010-04-02 18:57:58 +00:00
2013-09-10 18:03:45 +00:00
2013-07-18 16:03:12 +00:00
2012-10-14 21:44:27 +00:00
2010-04-02 18:57:58 +00:00
2013-08-22 21:09:52 +00:00
2012-10-14 21:44:27 +00:00
2013-09-12 23:21:35 +00:00
2013-07-30 18:14:50 +00:00
2013-09-11 14:14:03 +00:00
2013-07-30 18:14:50 +00:00
2013-09-03 18:08:20 +00:00
2013-07-30 18:14:50 +00:00
2013-09-13 13:27:23 +00:00
2013-07-30 18:14:50 +00:00
2013-08-22 17:42:37 +00:00
2013-07-30 18:14:50 +00:00
2013-07-30 18:14:50 +00:00
2013-08-06 12:39:27 +00:00
2013-08-22 17:42:37 +00:00
2013-07-30 18:14:50 +00:00
2013-08-06 12:39:27 +00:00
2013-07-30 18:14:50 +00:00
2013-09-04 22:28:44 +00:00
2013-09-05 14:09:48 +00:00
2013-08-30 00:10:49 +00:00
2013-08-29 22:24:30 +00:00
2013-07-30 18:14:50 +00:00
2013-08-28 21:05:31 +00:00
2013-07-30 18:14:50 +00:00
2013-08-20 15:27:48 +00:00
2013-07-30 18:14:50 +00:00
2013-08-23 15:42:27 +00:00
2013-08-29 21:33:19 +00:00
2013-07-30 18:14:50 +00:00
2013-07-30 18:14:50 +00:00
2013-07-30 18:14:50 +00:00
2013-09-12 15:23:10 +00:00
2013-07-30 18:14:50 +00:00
2013-07-30 13:46:16 +00:00
2010-04-02 18:57:58 +00:00
2011-11-01 19:53:26 +00:00
2013-08-23 15:42:27 +00:00
2013-04-14 03:01:33 +00:00
2013-08-30 19:20:47 +00:00
2012-10-14 21:44:27 +00:00
2010-04-02 18:57:58 +00:00
2012-10-14 21:44:27 +00:00
2013-08-02 14:27:35 +00:00
2013-04-25 18:25:31 +00:00
2013-03-20 14:52:23 +00:00
2013-04-27 12:01:29 +00:00
2012-10-01 12:29:04 +00:00
2010-04-02 18:57:58 +00:00
2013-05-15 12:42:04 +00:00
2010-06-08 05:29:08 +00:00
2013-06-24 21:40:52 +00:00
2013-05-20 14:21:39 +00:00
2013-08-30 13:17:12 +00:00
2013-05-23 20:11:35 +00:00
2013-08-30 13:17:12 +00:00
2013-07-03 17:58:45 +00:00
2013-06-24 21:40:52 +00:00
2013-05-08 13:39:08 +00:00
2013-08-27 19:15:49 +00:00
2013-04-15 16:43:47 +00:00
2013-07-27 23:11:02 +00:00
2013-04-26 20:05:15 +00:00
2013-07-08 14:42:57 +00:00
2012-11-05 23:10:14 +00:00
2012-11-05 23:10:14 +00:00
2013-04-19 22:27:08 +00:00
2012-11-05 23:10:14 +00:00
2013-09-07 01:02:04 +00:00
2012-07-07 17:06:51 +00:00