2
0
Fork 0

Fix etags (broken as "throttle" option was removed but not removed from enum)

personal/stbuehler/wip
Stefan Bühler 2009-10-12 00:09:22 +02:00
parent 0cb1a1fbfa
commit be6e2f4466
2 changed files with 2 additions and 3 deletions

View File

@ -21,8 +21,6 @@ enum liCoreOptions {
LI_CORE_OPTION_MIME_TYPES,
LI_CORE_OPTION_THROTTLE,
LI_CORE_OPTION_ETAG_FLAGS
};

View File

@ -902,8 +902,9 @@ static gboolean core_option_etag_use_parse(liServer *srv, liPlugin *p, size_t nd
/* Need manual type check, as resulting option type is number */
if (val->type != LI_VALUE_LIST) {
ERROR(srv, "etag.use option expects a list of strings, parameter is of type %s", li_value_type_string(val->type));
return FALSE;
}
arr = val->data.list;
arr = val->data.list;
for (guint i = 0; i < arr->len; i++) {
liValue *v = g_array_index(arr, liValue*, i);
if (v->type != LI_VALUE_STRING) {