Klaus Demo nginx / bba2ce8
Avoided to add duplicate hash key in ngx_http_types_slot(). Gu Feng 5 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
20042004 if (ngx_strcmp(value[i].data, type[n].key.data) == 0) {
20052005 ngx_conf_log_error(NGX_LOG_WARN, cf, 0,
20062006 "duplicate MIME type \"%V\"", &value[i]);
2007 continue;
2007 goto next;
20082008 }
20092009 }
20102010
20162016 type->key = value[i];
20172017 type->key_hash = hash;
20182018 type->value = (void *) 4;
2019
2020 next:
2021
2022 continue;
20192023 }
20202024
20212025 return NGX_CONF_OK;