Skip to content
Snippets Groups Projects
Commit f54715bd authored by Fabian Kurz's avatar Fabian Kurz Committed by Andy Green
Browse files

accept http1.1 from proxy

parent 353fdc38
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,9 @@ int lws_client_socket_service(struct libwebsocket_context *context, ...@@ -100,7 +100,9 @@ int lws_client_socket_service(struct libwebsocket_context *context,
} }
context->service_buffer[13] = '\0'; 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, libwebsocket_close_and_free_session(context, wsi,
LWS_CLOSE_STATUS_NOSTATUS); LWS_CLOSE_STATUS_NOSTATUS);
lwsl_err("ERROR proxy: %s\n", context->service_buffer); lwsl_err("ERROR proxy: %s\n", context->service_buffer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment