summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--json-rpc-shell.c1
1 files changed, 1 insertions, 0 deletions
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");