aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r--src/microhttpd/daemon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 6e97085b..1b0a42bb 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -1852,7 +1852,7 @@ send_param_adapter (struct MHD_Connection *connection,
1852 if ( (connection->write_buffer_append_offset == 1852 if ( (connection->write_buffer_append_offset ==
1853 connection->write_buffer_send_offset) && 1853 connection->write_buffer_send_offset) &&
1854 (NULL != connection->response) && 1854 (NULL != connection->response) &&
1855 (-1 != (fd = connection->response->fd)) ) 1855 (MHD_resp_sender_sendfile == connection->resp_sender) )
1856 { 1856 {
1857 /* can use sendfile */ 1857 /* can use sendfile */
1858 uint64_t left; 1858 uint64_t left;
@@ -1904,6 +1904,7 @@ send_param_adapter (struct MHD_Connection *connection,
1904 to fall back to 'SEND'; see also this thread for info on 1904 to fall back to 'SEND'; see also this thread for info on
1905 odd libc/Linux behavior with sendfile: 1905 odd libc/Linux behavior with sendfile:
1906 http://lists.gnu.org/archive/html/libmicrohttpd/2011-02/msg00015.html */ 1906 http://lists.gnu.org/archive/html/libmicrohttpd/2011-02/msg00015.html */
1907 connection->resp_sender = MHD_resp_sender_std;
1907 } 1908 }
1908#endif 1909#endif
1909 ret = MHD_send_ (connection->socket_fd, 1910 ret = MHD_send_ (connection->socket_fd,