From 753d5f02ae11e1983cf248d7097a2da41caa880f Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Mon, 6 Feb 2017 18:39:33 +0100
Subject: WebSocket: remember to send the protocol version
---
json-rpc-shell.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/json-rpc-shell.c b/json-rpc-shell.c
index 6792bb4..8f19b1e 100644
--- a/json-rpc-shell.c
+++ b/json-rpc-shell.c
@@ -2071,6 +2071,7 @@ backend_ws_connect (struct ws_context *self, struct error **e)
str_append_printf (&request, "Upgrade: websocket\r\n");
str_append_printf (&request, "Connection: upgrade\r\n");
str_append_printf (&request, SEC_WS_KEY ": %s\r\n", key_b64_string);
+ str_append_printf (&request, SEC_WS_VERSION ": %s\r\n", "13");
for (size_t i = 0; i < self->extra_headers.len; i++)
str_append_printf (&request, "%s\r\n", self->extra_headers.vector[i]);
str_append_printf (&request, "\r\n");
--
cgit v1.2.3-70-g09d2