aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 0c9d1f9b..4be4a258 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1046,7 +1046,7 @@ build_header_response (struct MHD_Connection *connection)
1046 /* estimate size */ 1046 /* estimate size */
1047 size = off + 2; /* +2 for extra "\r\n" at the end */ 1047 size = off + 2; /* +2 for extra "\r\n" at the end */
1048 kind = MHD_HEADER_KIND; 1048 kind = MHD_HEADER_KIND;
1049 if ( (0 == (connection->daemon->options & MHD_SUPPRESS_DATE_NO_CLOCK)) && 1049 if ( (0 == (connection->daemon->options & MHD_USE_SUPPRESS_DATE_NO_CLOCK)) &&
1050 (NULL == MHD_get_response_header (connection->response, 1050 (NULL == MHD_get_response_header (connection->response,
1051 MHD_HTTP_HEADER_DATE)) ) 1051 MHD_HTTP_HEADER_DATE)) )
1052 get_date_string (date); 1052 get_date_string (date);
@@ -3455,11 +3455,11 @@ MHD_queue_response (struct MHD_Connection *connection,
3455#ifdef UPGRADE_SUPPORT 3455#ifdef UPGRADE_SUPPORT
3456 daemon = connection->daemon; 3456 daemon = connection->daemon;
3457 if ( (NULL != response->upgrade_handler) && 3457 if ( (NULL != response->upgrade_handler) &&
3458 (0 == (daemon->options & MHD_USE_UPGRADE)) ) 3458 (0 == (daemon->options & MHD_ALLOW_UPGRADE)) )
3459 { 3459 {
3460#ifdef HAVE_MESSAGES 3460#ifdef HAVE_MESSAGES
3461 MHD_DLOG (daemon, 3461 MHD_DLOG (daemon,
3462 _("Attempted 'upgrade' connection on daemon without MHD_USE_UPGRADE option!\n")); 3462 _("Attempted 'upgrade' connection on daemon without MHD_ALLOW_UPGRADE option!\n"));
3463#endif 3463#endif
3464 return MHD_NO; 3464 return MHD_NO;
3465 } 3465 }