From 97fd0a6557b98166f9617370e1497d47e80e9a04 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 1 Aug 2019 21:20:56 +0200 Subject: handle TLS case in send_on_connectin2 --- src/microhttpd/mhd_send.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c index 36d8afa7..cc9fcf5b 100644 --- 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; -- cgit v1.2.3