diff --git a/include/libhttp.h b/include/libhttp.h index 1a53f6d5..f81d7e06 100644 --- a/include/libhttp.h +++ b/include/libhttp.h @@ -454,7 +454,6 @@ struct httplib_option { enum { CONFIG_TYPE_UNKNOWN = 0x0, - CONFIG_TYPE_FILE = 0x3, CONFIG_TYPE_DIRECTORY = 0x4, CONFIG_TYPE_EXT_PATTERN = 0x6 }; diff --git a/src/main.c b/src/main.c index 5f4e8ffe..295f32ec 100644 --- a/src/main.c +++ b/src/main.c @@ -372,7 +372,7 @@ static int set_option( struct httplib_option_t *options, const char *name, const return 0; } break; - case CONFIG_TYPE_FILE: + case 0x03 : /* CONFIG_TYPE_FILE: */ case CONFIG_TYPE_DIRECTORY: /* TODO (low): check this option when it is set, instead of calling * verify_existence later */