v08v13 add support v13 default
Signed-off-by: Andy Green <andy@warmcat.com>
diff --git a/lib/parsers.c b/lib/parsers.c
index 32b9be5..52f1b7d 100644
--- a/lib/parsers.c
+++ b/lib/parsers.c
@@ -297,7 +297,7 @@
case LWS_RXPS_NEW:
switch (wsi->ietf_spec_revision) {
- /* Firefox 4.0b6 likes this as of 30 Oct */
+ /* Firefox 4.0b6 likes this as of 30 Oct 2010 */
case 0:
if (c == 0xff)
wsi->lws_rx_parse_state = LWS_RXPS_SEEN_76_FF;
@@ -317,6 +317,8 @@
wsi->lws_rx_parse_state = LWS_RXPS_04_MASK_NONCE_1;
break;
case 7:
+ case 8:
+ case 13:
/*
* no prepended frame key any more
*/
@@ -847,6 +849,8 @@
case 5:
case 6:
case 7:
+ case 8:
+ case 13:
/*
* 04 logical framing from the spec (all this is masked when
* incoming and has to be unmasked)
@@ -1573,8 +1577,8 @@
return -1;
switch (wsi->ietf_spec_revision) {
- /* chrome likes this as of 30 Oct */
- /* Firefox 4.0b6 likes this as of 30 Oct */
+ /* chrome likes this as of 30 Oct 2010 */
+ /* Firefox 4.0b6 likes this as of 30 Oct 2010 */
case 0:
if ((protocol & 0xf) == LWS_WRITE_BINARY) {
/* in binary mode we send 7-bit used length blocks */
@@ -1607,6 +1611,8 @@
break;
case 7:
+ case 8:
+ case 13:
if (masked7) {
pre += 4;
dropmask = &buf[0 - pre];