Skip to content

Commit

Permalink
Preallocating exact number of default MIME types entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsysoev committed Oct 12, 2011
1 parent 88ca608 commit bfe7be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/ngx_http_core_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bfe7be4

Please sign in to comment.