diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-05-15 21:02:48 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-05-15 21:02:48 +0300 |
commit | 7899565cef80da2787920ed267a01060b45bdb43 (patch) | |
tree | f045472ec0544453bad4328ec769c6204189d6eb /src/include/microhttpd.h | |
parent | d08fb47c0a53a658fdd97fd1a4e265aade576418 (diff) | |
download | libmicrohttpd-7899565cef80da2787920ed267a01060b45bdb43.tar.gz libmicrohttpd-7899565cef80da2787920ed267a01060b45bdb43.zip |
Made cookie parsing optional feature
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 13 |
1 files changed, 11 insertions, 2 deletions
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" | |||
96 | * they are parsed as decimal numbers. | 96 | * they are parsed as decimal numbers. |
97 | * Example: 0x01093001 = 1.9.30-1. | 97 | * Example: 0x01093001 = 1.9.30-1. |
98 | */ | 98 | */ |
99 | #define MHD_VERSION 0x00097513 | 99 | #define MHD_VERSION 0x00097514 |
100 | 100 | ||
101 | /* If generic headers don't work on your platform, include headers | 101 | /* If generic headers don't work on your platform, include headers |
102 | which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t', | 102 | which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t', |
@@ -4964,7 +4964,16 @@ enum MHD_FEATURE | |||
4964 | * Get whether option #MHD_OPTION_HTTPS_CERT_CALLBACK2 is | 4964 | * Get whether option #MHD_OPTION_HTTPS_CERT_CALLBACK2 is |
4965 | * supported. | 4965 | * supported. |
4966 | */ | 4966 | */ |
4967 | MHD_FEATURE_HTTPS_CERT_CALLBACK2 = 23 | 4967 | MHD_FEATURE_HTTPS_CERT_CALLBACK2 = 23, |
4968 | |||
4969 | /** | ||
4970 | * Get whether option automatic parsing of HTTP Cookie header | ||
4971 | * is enabled. | ||
4972 | * If disabled, no MHD_COOKIE_KIND will be generated by MHD. | ||
4973 | * MHD versions before 0x00097514 always support cookie parsing. | ||
4974 | * @note Available since #MHD_VERSION 0x00097514 | ||
4975 | */ | ||
4976 | MHD_FEATURE_HTTPS_COOKIE_PARSING = 24 | ||
4968 | } _MHD_FIXED_ENUM; | 4977 | } _MHD_FIXED_ENUM; |
4969 | 4978 | ||
4970 | 4979 | ||