accept http1.1 from proxy
This commit is contained in:
parent
353fdc383e
commit
f54715bd5f
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue