libmicrohttpd

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

commit 97fd0a6557b98166f9617370e1497d47e80e9a04
parent 8a4aec4d78fe4fb335aede980e8567b8bc51858f
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu,  1 Aug 2019 21:20:56 +0200

handle TLS case in send_on_connectin2

Diffstat:
Msrc/microhttpd/mhd_send.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c @@ -348,6 +348,13 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, const char *buffer, size_t buffer_size) { +#ifdef HTTPS_SUPPORT + if (0 != (connection->daemon->options & MHD_USE_TLS)) + return MHD_send_on_connection_ (connection, + header, + header_size, + MHD_SSO_HDR_CORK); +#endif #if defined(HAVE_SENDMSG) || defined(HAVE_WRITEV) MHD_socket s = connection->socket_fd; ssize_t ret;