mirror of
https://github.com/lammertb/libhttp.git
synced 2025-08-06 05:02:40 +03:00
Removed CONFIG_TYPE_BOOLEAN
This commit is contained in:
@@ -458,7 +458,6 @@ enum {
|
||||
CONFIG_TYPE_STRING = 0x2,
|
||||
CONFIG_TYPE_FILE = 0x3,
|
||||
CONFIG_TYPE_DIRECTORY = 0x4,
|
||||
CONFIG_TYPE_BOOLEAN = 0x5,
|
||||
CONFIG_TYPE_EXT_PATTERN = 0x6
|
||||
};
|
||||
|
||||
|
@@ -365,7 +365,7 @@ static int set_option( struct httplib_option_t *options, const char *name, const
|
||||
case CONFIG_TYPE_STRING:
|
||||
/* any text */
|
||||
break;
|
||||
case CONFIG_TYPE_BOOLEAN:
|
||||
case 0x5 : /* CONFIG_TYPE_BOOLEAN: */
|
||||
/* boolean value, yes or no */
|
||||
if ((0 != strcmp(value, "yes")) && (0 != strcmp(value, "no"))) {
|
||||
/* invalid boolean */
|
||||
|
Reference in New Issue
Block a user