test-client: only take data from LWS_CALLBACK_RECEIVE_CLIENT_HTTP
This commit is contained in:
parent
19cc7acb24
commit
21d83b44ea
2 changed files with 1 additions and 9 deletions
|
@ -658,9 +658,8 @@ spin_chunks:
|
|||
if (wsi->chunked && !wsi->chunk_remaining)
|
||||
wsi->chunk_parser = ELCP_POST_CR;
|
||||
|
||||
if (wsi->chunked && *len) {
|
||||
if (wsi->chunked && *len)
|
||||
goto spin_chunks;
|
||||
}
|
||||
|
||||
if (wsi->chunked)
|
||||
return 0;
|
||||
|
|
|
@ -180,13 +180,6 @@ callback_dumb_increment(struct lws *wsi, enum lws_callback_reasons reason,
|
|||
*/
|
||||
if (lws_http_client_read(wsi, &px, &lenx) < 0)
|
||||
return -1;
|
||||
|
||||
if (lenx) {
|
||||
lwsl_info("LWS_CALLBACK_RECEIVE_CLIENT_HTTP %ld\n",
|
||||
(long)lenx);
|
||||
|
||||
show_http_content(px, lenx);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue