diff options
author | Andy Green <andy@warmcat.com> | 2019-04-05 09:08:55 +0800 |
---|---|---|
committer | Andy Green <andy@warmcat.com> | 2019-04-06 06:16:20 +0800 |
commit | 8a6cf749e8a5bb16f74cb4b2a8048c8f56ac87b3 (patch) | |
tree | 87110508d7b5e81e922cd7d9385d37d75f657838 /lib/roles/h1 | |
parent | 38fb0e31dadc938e36c101bfbc421898466e63b5 (diff) | |
download | libwebsockets-8a6cf749e8a5bb16f74cb4b2a8048c8f56ac87b3.tar.gz |
post: only report BODY_COMPLETION once
Diffstat (limited to 'lib/roles/h1')
-rw-r--r-- | lib/roles/h1/ops-h1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/roles/h1/ops-h1.c b/lib/roles/h1/ops-h1.c index 6ae195f3..19860b53 100644 --- a/lib/roles/h1/ops-h1.c +++ b/lib/roles/h1/ops-h1.c @@ -116,7 +116,7 @@ lws_read_h1(struct lws *wsi, unsigned char *buf, lws_filepos_t len) case LRS_BODY: http_postbody: - lwsl_debug("%s: http post body: remain %d\n", __func__, + lwsl_notice("%s: http post body: remain %d\n", __func__, (int)wsi->http.rx_content_remain); if (!wsi->http.rx_content_remain) @@ -185,6 +185,7 @@ postbody_completion: { lwsl_info("HTTP_BODY_COMPLETION: %p (%s)\n", wsi, wsi->protocol->name); + n = wsi->protocol->callback(wsi, LWS_CALLBACK_HTTP_BODY_COMPLETION, wsi->user_space, NULL, 0); |