aboutsummaryrefslogtreecommitdiff
path: root/lib/roles/h1
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2019-04-05 09:08:55 +0800
committerAndy Green <andy@warmcat.com>2019-04-06 06:16:20 +0800
commit8a6cf749e8a5bb16f74cb4b2a8048c8f56ac87b3 (patch)
tree87110508d7b5e81e922cd7d9385d37d75f657838 /lib/roles/h1
parent38fb0e31dadc938e36c101bfbc421898466e63b5 (diff)
downloadlibwebsockets-8a6cf749e8a5bb16f74cb4b2a8048c8f56ac87b3.tar.gz
post: only report BODY_COMPLETION once
Diffstat (limited to 'lib/roles/h1')
-rw-r--r--lib/roles/h1/ops-h1.c3
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);