1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Fix HTTP Head method that not signal LWS_CALLBACK_COMPLETED_CLIENT_HTTP

Signed-off-by: stropee <simon@sirocha.fr>
This commit is contained in:
stropee 2024-10-20 15:39:06 +02:00
parent efa6221216
commit 9fac6fc1dd

View file

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