mirror of
https://github.com/nginx/nginx.git
synced 2025-01-24 07:06:35 -06:00
Preallocating exact number of default MIME types entries.
This commit is contained in:
parent
88ca608da1
commit
bfe7be45b8
@ -3400,7 +3400,7 @@ ngx_http_core_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
|
||||
}
|
||||
|
||||
if (conf->types == NULL) {
|
||||
conf->types = ngx_array_create(cf->pool, 4, sizeof(ngx_hash_key_t));
|
||||
conf->types = ngx_array_create(cf->pool, 3, sizeof(ngx_hash_key_t));
|
||||
if (conf->types == NULL) {
|
||||
return NGX_CONF_ERROR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user