aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-06-24 20:46:42 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-06-24 20:46:42 +0200
commita16a7940dd0a475f6badd1ddbfb3bc784d2dd92a (patch)
treeb3cc50bcd3ca796dcac51161c2a2443058062978
parentace6a1ff56927cd81d84d26f159087b3fde1ca95 (diff)
downloadjson-rpc-shell-a16a7940dd0a475f6badd1ddbfb3bc784d2dd92a.tar.gz
json-rpc-shell-a16a7940dd0a475f6badd1ddbfb3bc784d2dd92a.tar.xz
json-rpc-shell-a16a7940dd0a475f6badd1ddbfb3bc784d2dd92a.zip
Fix typo in HTTP request header
-rw-r--r--json-rpc-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c
index de88e6b..7d91853 100644
--- a/json-rpc-shell.c
+++ b/json-rpc-shell.c
@@ -1332,7 +1332,7 @@ backend_ws_connect (struct app_context *ctx, struct error **e)
struct str request;
str_init (&request);
- str_append_printf (&request, "GET %s HTTP/1,1\r\n", url_path);
+ str_append_printf (&request, "GET %s HTTP/1.1\r\n", url_path);
// TODO: omit the port if it's the default (check RFC for "SHOULD" or ...)
str_append_printf (&request, "Host: %s:%s\r\n", url_host, url_port);
str_append_printf (&request, "Upgrade: websocket\r\n");