From 7899565cef80da2787920ed267a01060b45bdb43 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Sun, 15 May 2022 21:02:48 +0300 Subject: Made cookie parsing optional feature --- src/include/microhttpd.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/include/microhttpd.h') diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 3e1dbc96..84561dec 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h @@ -96,7 +96,7 @@ extern "C" * they are parsed as decimal numbers. * Example: 0x01093001 = 1.9.30-1. */ -#define MHD_VERSION 0x00097513 +#define MHD_VERSION 0x00097514 /* If generic headers don't work on your platform, include headers which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t', @@ -4964,7 +4964,16 @@ enum MHD_FEATURE * Get whether option #MHD_OPTION_HTTPS_CERT_CALLBACK2 is * supported. */ - MHD_FEATURE_HTTPS_CERT_CALLBACK2 = 23 + MHD_FEATURE_HTTPS_CERT_CALLBACK2 = 23, + + /** + * Get whether option automatic parsing of HTTP Cookie header + * is enabled. + * If disabled, no MHD_COOKIE_KIND will be generated by MHD. + * MHD versions before 0x00097514 always support cookie parsing. + * @note Available since #MHD_VERSION 0x00097514 + */ + MHD_FEATURE_HTTPS_COOKIE_PARSING = 24 } _MHD_FIXED_ENUM; -- cgit v1.2.3