From f58241c4f2f596b48540af5f5e486609dd2fb1a7 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sun, 9 Apr 2017 07:56:41 +0800 Subject: [PATCH] client: allow 201 --- lib/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/client.c b/lib/client.c index c337b117..90fe2276 100755 --- a/lib/client.c +++ b/lib/client.c @@ -554,9 +554,9 @@ lws_client_interpret_server_handshake(struct lws *wsi) } if (!wsi->do_ws) { - if (n != 200 && n != 304) { + if (n != 200 && n != 201 && n != 304 && n != 401) { lwsl_notice("Connection failed with code %d\n", n); - cce = "HS: Server did not return 200 or 304"; + cce = "HS: Server unrecognized response code"; goto bail2; }