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

personal/stbuehler/wip
Stefan Bühler 13 years ago
parent 0cb1a1fbfa
commit be6e2f4466
  1. 2
      include/lighttpd/plugin_core.h
  2. 3
      src/main/plugin_core.c

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

@ -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) {

Loading…
Cancel
Save