libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 8869259c7f19179208af31bf3e182ced81d748e3
parent 84216009dd366426cea6994b871de3aefed75402
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 29 Nov 2019 23:23:05 +0100

if suspended on POST before 100 CONTINUE, give application a second chance to queue non-100 CONTINUE response

Diffstat:
MChangeLog | 4++++
Msrc/include/microhttpd.h | 2+-
Msrc/microhttpd/connection.c | 2++
3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,7 @@ +Fri 29 Nov 2019 11:22:25 PM CET + If application suspends a connection before we could send 100 CONTINUE, + give application another shot at queuing a reply before the upload begins. -CG + Sat 26 Oct 2019 06:53:05 PM CEST Fix regression where MHD would fail to return an empty response when used with HTTPS. diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -132,7 +132,7 @@ typedef intptr_t ssize_t; * Current version of the library. * 0x01093001 = 1.9.30-1. */ -#define MHD_VERSION 0x00096800 +#define MHD_VERSION 0x00096801 /** * MHD-internal return code for "YES". diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -3401,6 +3401,8 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) call_connection_handler (connection); /* first call */ if (MHD_CONNECTION_CLOSED == connection->state) continue; + if (connection->suspended) + continue; if (need_100_continue (connection)) { connection->state = MHD_CONNECTION_CONTINUE_SENDING;