diff --git a/include/libhttp.h b/include/libhttp.h index 23b3b0e0..9606fde0 100644 --- a/include/libhttp.h +++ b/include/libhttp.h @@ -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 }; diff --git a/src/main.c b/src/main.c index f3eaacab..73aa2136 100644 --- a/src/main.c +++ b/src/main.c @@ -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 */