diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-08-01 21:20:56 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-08-01 21:20:56 +0200 |
commit | 97fd0a6557b98166f9617370e1497d47e80e9a04 (patch) | |
tree | 85c8ac4b2b4694ace0d1a6c58463436db1f25792 /src/microhttpd/mhd_send.c | |
parent | 8a4aec4d78fe4fb335aede980e8567b8bc51858f (diff) | |
download | libmicrohttpd-97fd0a6557b98166f9617370e1497d47e80e9a04.tar.gz libmicrohttpd-97fd0a6557b98166f9617370e1497d47e80e9a04.zip |
handle TLS case in send_on_connectin2
Diffstat (limited to 'src/microhttpd/mhd_send.c')
-rw-r--r-- | src/microhttpd/mhd_send.c | 7 |
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, | |||
348 | const char *buffer, | 348 | const char *buffer, |
349 | size_t buffer_size) | 349 | size_t buffer_size) |
350 | { | 350 | { |
351 | #ifdef HTTPS_SUPPORT | ||
352 | if (0 != (connection->daemon->options & MHD_USE_TLS)) | ||
353 | return MHD_send_on_connection_ (connection, | ||
354 | header, | ||
355 | header_size, | ||
356 | MHD_SSO_HDR_CORK); | ||
357 | #endif | ||
351 | #if defined(HAVE_SENDMSG) || defined(HAVE_WRITEV) | 358 | #if defined(HAVE_SENDMSG) || defined(HAVE_WRITEV) |
352 | MHD_socket s = connection->socket_fd; | 359 | MHD_socket s = connection->socket_fd; |
353 | ssize_t ret; | 360 | ssize_t ret; |