mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
Make sure headers are parsed before proceeding.
This commit is contained in:
parent
991f1cded8
commit
c7dbad66ab
1 changed files with 5 additions and 0 deletions
|
@ -88,6 +88,11 @@ http_new:
|
|||
* lws_handshake_server doesn't update len for us. Figure out how
|
||||
* much was read, so that we can proceed appropriately: */
|
||||
len -= (buf - last_char);
|
||||
|
||||
if (!wsi->hdr_parsing_completed)
|
||||
/* More header content on the way */
|
||||
goto read_ok;
|
||||
|
||||
switch (wsi->state) {
|
||||
case WSI_STATE_HTTP:
|
||||
case WSI_STATE_HTTP_HEADERS:
|
||||
|
|
Loading…
Add table
Reference in a new issue