comparison src/http/ngx_http_core_module.c @ 4190:d434191a147f

Fixing directive name in error message if types hash size is not enough.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 11 Oct 2011 11:11:44 +0000
parents 28b77af3a238
children 9ff4acd99289
comparison
equal deleted inserted replaced
4189:a12c558503f0 4190:d434191a147f
3423 3423
3424 types_hash.hash = &conf->types_hash; 3424 types_hash.hash = &conf->types_hash;
3425 types_hash.key = ngx_hash_key_lc; 3425 types_hash.key = ngx_hash_key_lc;
3426 types_hash.max_size = conf->types_hash_max_size; 3426 types_hash.max_size = conf->types_hash_max_size;
3427 types_hash.bucket_size = conf->types_hash_bucket_size; 3427 types_hash.bucket_size = conf->types_hash_bucket_size;
3428 types_hash.name = "mime_types_hash"; 3428 types_hash.name = "types_hash";
3429 types_hash.pool = cf->pool; 3429 types_hash.pool = cf->pool;
3430 types_hash.temp_pool = NULL; 3430 types_hash.temp_pool = NULL;
3431 3431
3432 if (ngx_hash_init(&types_hash, conf->types->elts, conf->types->nelts) 3432 if (ngx_hash_init(&types_hash, conf->types->elts, conf->types->nelts)
3433 != NGX_OK) 3433 != NGX_OK)