diff src/http/ngx_http_core_module.c @ 4200:4f5b3714eead

Preallocating exact number of default MIME types entries.
author Igor Sysoev <igor@sysoev.ru>
date Wed, 12 Oct 2011 09:19:57 +0000
parents 9ff4acd99289
children 7a739880b80c
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -3400,7 +3400,7 @@ ngx_http_core_merge_loc_conf(ngx_conf_t 
     }
 
     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;
         }