aboutsummaryrefslogtreecommitdiff
path: root/lib/core-net
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2021-08-13 21:16:24 +0100
committerAndy Green <andy@warmcat.com>2021-08-19 05:31:15 +0100
commit5b8a597c1dd45cc3cd723a0f607c4b783ab896fa (patch)
tree6843a386d53517602db30e32f7b0e9a3cbfa439b /lib/core-net
parente49a5f3698c24dc50c836b3bf30443dcf47d850f (diff)
downloadlibwebsockets-5b8a597c1dd45cc3cd723a0f607c4b783ab896fa.tar.gz
server: http-proxy: fix POST
Diffstat (limited to 'lib/core-net')
-rw-r--r--lib/core-net/dummy-callback.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/core-net/dummy-callback.c b/lib/core-net/dummy-callback.c
index 86be0b54..9552af5a 100644
--- a/lib/core-net/dummy-callback.c
+++ b/lib/core-net/dummy-callback.c
@@ -296,6 +296,7 @@ lws_callback_http_dummy(struct lws *wsi, enum lws_callback_reasons reason,
if (wsi->child_list) {
lwsl_wsi_info(wsi, "HTTP_BODY_COMPLETION: %d",
(int)len);
+ lws_callback_on_writable(wsi->child_list);
break;
}
#endif
@@ -317,6 +318,7 @@ lws_callback_http_dummy(struct lws *wsi, enum lws_callback_reasons reason,
if (lws_buflist_append_segment(
&wsi->http.buflist_post_body, in, len) < 0)
return -1;
+ lws_client_http_body_pending(wsi->child_list, 1);
lws_callback_on_writable(wsi->child_list);
}
break;