accept http1.1 from proxy

This commit is contained in:
Fabian Kurz 2015-10-14 14:52:28 +08:00 committed by Andy Green
parent 353fdc383e
commit f54715bd5f

View file

@ -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);