From f54715bd5f3d14274b77a6682790a208aae10b33 Mon Sep 17 00:00:00 2001 From: Fabian Kurz Date: Wed, 14 Oct 2015 14:52:28 +0800 Subject: [PATCH] accept http1.1 from proxy --- lib/client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/client.c b/lib/client.c index 03c2a869..5afd8eab 100644 --- a/lib/client.c +++ b/lib/client.c @@ -100,7 +100,9 @@ int lws_client_socket_service(struct libwebsocket_context *context, } context->service_buffer[13] = '\0'; - if (strcmp((char *)context->service_buffer, "HTTP/1.0 200 ")) { + if (strcmp((char *)context->service_buffer, "HTTP/1.0 200 ") && + strcmp((char *)context->service_buffer, "HTTP/1.1 200 ") + ) { libwebsocket_close_and_free_session(context, wsi, LWS_CLOSE_STATUS_NOSTATUS); lwsl_err("ERROR proxy: %s\n", context->service_buffer);