accept http1.1 from proxy
diff --git a/lib/client.c b/lib/client.c
index 03c2a86..5afd8ea 100644
--- a/lib/client.c
+++ b/lib/client.c
@@ -100,7 +100,9 @@
}
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);