mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
http: pipeline: handle methods lacking COMPLETED_CLIENT_HTTP
Signed-off-by: stropee <simon@sirocha.fr>
This commit is contained in:
parent
ea00ad2076
commit
e04a3cf132
1 changed files with 7 additions and 2 deletions
|
@ -1373,10 +1373,15 @@ lws_client_interpret_server_handshake(struct lws *wsi)
|
|||
* content-length of zero? If so, and it's not H2 which will
|
||||
* notice it via END_STREAM, this transaction is already
|
||||
* completed at the end of the header processing...
|
||||
* We also completed it if the request method is HEAD which as
|
||||
* no content leftover.
|
||||
*/
|
||||
if (!wsi->mux_substream && !wsi->client_mux_substream &&
|
||||
simp = lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_METHOD);
|
||||
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 ||
|
||||
(simp && !strcmp(simp,"HEAD"))))
|
||||
return !!lws_http_transaction_completed_client(wsi);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue