From 9fac6fc1dd50e1a0551cf0581f464d514e6cef2a Mon Sep 17 00:00:00 2001 From: stropee Date: Sun, 20 Oct 2024 15:39:06 +0200 Subject: [PATCH] Fix HTTP Head method that not signal LWS_CALLBACK_COMPLETED_CLIENT_HTTP Signed-off-by: stropee --- lib/roles/http/client/client-http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roles/http/client/client-http.c b/lib/roles/http/client/client-http.c index 05532f295..b35dd008a 100644 --- a/lib/roles/http/client/client-http.c +++ b/lib/roles/http/client/client-http.c @@ -1376,7 +1376,7 @@ lws_client_interpret_server_handshake(struct lws *wsi) */ if (!wsi->mux_substream && !wsi->client_mux_substream && lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_CONTENT_LENGTH) && - !wsi->http.rx_content_length) + (!wsi->http.rx_content_length || !strcmp(lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_METHOD),"HEAD"))) return !!lws_http_transaction_completed_client(wsi); /*