From 959d55ec5eea5b5d68fed524d1b48184c4763620 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Mon, 7 Nov 2016 17:08:03 +0300 Subject: Renamed MHD flags. Now all flags are in forms MHD_USE_* or MHD_ALLOW_*. --- src/microhttpd/connection.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/microhttpd/connection.c') 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) /* estimate size */ size = off + 2; /* +2 for extra "\r\n" at the end */ kind = MHD_HEADER_KIND; - if ( (0 == (connection->daemon->options & MHD_SUPPRESS_DATE_NO_CLOCK)) && + if ( (0 == (connection->daemon->options & MHD_USE_SUPPRESS_DATE_NO_CLOCK)) && (NULL == MHD_get_response_header (connection->response, MHD_HTTP_HEADER_DATE)) ) get_date_string (date); @@ -3455,11 +3455,11 @@ MHD_queue_response (struct MHD_Connection *connection, #ifdef UPGRADE_SUPPORT daemon = connection->daemon; if ( (NULL != response->upgrade_handler) && - (0 == (daemon->options & MHD_USE_UPGRADE)) ) + (0 == (daemon->options & MHD_ALLOW_UPGRADE)) ) { #ifdef HAVE_MESSAGES MHD_DLOG (daemon, - _("Attempted 'upgrade' connection on daemon without MHD_USE_UPGRADE option!\n")); + _("Attempted 'upgrade' connection on daemon without MHD_ALLOW_UPGRADE option!\n")); #endif return MHD_NO; } -- cgit v1.2.3