summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-08-01 21:20:56 +0200
committerChristian Grothoff <christian@grothoff.org>2019-08-01 21:20:56 +0200
commit97fd0a6557b98166f9617370e1497d47e80e9a04 (patch)
tree85c8ac4b2b4694ace0d1a6c58463436db1f25792
parent8a4aec4d78fe4fb335aede980e8567b8bc51858f (diff)
handle TLS case in send_on_connectin2
-rw-r--r--src/microhttpd/mhd_send.c7
1 files changed, 7 insertions, 0 deletions
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;