aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r--src/daemon/connection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c
index d78d5eef..229ab6b5 100644
--- a/src/daemon/connection.c
+++ b/src/daemon/connection.c
@@ -658,8 +658,9 @@ build_header_response (struct MHD_Connection *connection)
658 /* estimate size */ 658 /* estimate size */
659 size = off + 2; /* extra \r\n at the end */ 659 size = off + 2; /* extra \r\n at the end */
660 kind = MHD_HEADER_KIND; 660 kind = MHD_HEADER_KIND;
661 if (NULL == MHD_get_response_header (connection->response, 661 if ( (0 == (connection->daemon->options & MHD_SUPPRESS_DATE_NO_CLOCK)) &&
662 MHD_HTTP_HEADER_DATE)) 662 (NULL == MHD_get_response_header (connection->response,
663 MHD_HTTP_HEADER_DATE))
663 get_date_string (date); 664 get_date_string (date);
664 else 665 else
665 date[0] = '\0'; 666 date[0] = '\0';