test-client: only take data from LWS_CALLBACK_RECEIVE_CLIENT_HTTP

This commit is contained in:
Andy Green 2017-03-06 12:42:08 +08:00
parent 19cc7acb24
commit 21d83b44ea
2 changed files with 1 additions and 9 deletions

View file

@ -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;

View file

@ -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;