瀏覽代碼

microhttpd.h: fixed feature name

Evgeny Grin (Karlson2k) 1 年之前
父節點
當前提交
4e056c9794
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/include/microhttpd.h

+ 6 - 2
src/include/microhttpd.h

@@ -6403,9 +6403,9 @@ enum MHD_FEATURE
    * Get whether automatic parsing of HTTP Cookie header is supported.
    * If disabled, no MHD_COOKIE_KIND will be generated by MHD.
    * MHD versions before 0x00097701 always support cookie parsing.
-   * @note Available since #MHD_VERSION 0x00097701
+   * @note Available since #MHD_VERSION 0x01000200
    */
-  MHD_FEATURE_HTTPS_COOKIE_PARSING = 24,
+  MHD_FEATURE_COOKIE_PARSING = 24,
 
   /**
    * Get whether the early version the Digest Authorization (RFC 2069) is
@@ -6499,6 +6499,10 @@ enum MHD_FEATURE
   MHD_FEATURE_FLEXIBLE_FD_SETSIZE = 34
 };
 
+#define MHD_FEATURE_HTTPS_COOKIE_PARSING _MHD_DEPR_IN_MACRO ( \
+    "Value MHD_FEATURE_HTTPS_COOKIE_PARSING is deprecated, " \
+    "use MHD_FEATURE_COOKIE_PARSING" \
+    ) MHD_FEATURE_COOKIE_PARSING
 
 /**
  * Get information about supported MHD features.