test-client: only take data from LWS_CALLBACK_RECEIVE_CLIENT_HTTP
authorAndy Green <andy@warmcat.com>
Mon, 6 Mar 2017 04:42:08 +0000 (12:42 +0800)
committerAndy Green <andy@warmcat.com>
Mon, 6 Mar 2017 06:46:03 +0000 (14:46 +0800)
lib/service.c
test-server/test-client.c

index 31c96b1..84e489d 100644 (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;
index fd0a724..200e9e4 100644 (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;