diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2017-02-06 18:39:33 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-02-06 18:39:33 +0100 |
commit | 753d5f02ae11e1983cf248d7097a2da41caa880f (patch) | |
tree | edf0acc45499ac387cf8c837c550b36a2012c798 | |
parent | d73aa0436c9347330424031d039fdbe05fb3ec63 (diff) | |
download | json-rpc-shell-753d5f02ae11e1983cf248d7097a2da41caa880f.tar.gz json-rpc-shell-753d5f02ae11e1983cf248d7097a2da41caa880f.tar.xz json-rpc-shell-753d5f02ae11e1983cf248d7097a2da41caa880f.zip |
WebSocket: remember to send the protocol version
-rw-r--r-- | json-rpc-shell.c | 1 |
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"); |