Mercurial > hg > nginx-mail
diff src/http/ngx_http_core_module.c @ 186:54aabf2b0bc6 NGINX_0_3_40
nginx 0.3.40
*) Feature: the ngx_http_dav_module supports the MKCOL method.
*) Feature: the "create_full_put_path" directive.
*) Feature: the "$limit_rate" variable.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 19 Apr 2006 00:00:00 +0400 |
parents | 71ff1e2b484a |
children | 3689cd4e3228 |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -753,6 +753,10 @@ ngx_http_update_location_config(ngx_http if (clcf->client_body_in_file_only) { r->request_body_in_file_only = 1; r->request_body_in_persistent_file = 1; + r->request_body_file_log_level = NGX_LOG_NOTICE; + + } else { + r->request_body_file_log_level = NGX_LOG_WARN; } if (r->keepalive && clcf->keepalive_timeout == 0) { @@ -1692,9 +1696,18 @@ ngx_http_core_cmp_locations(const void * static char * ngx_http_core_types(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) { + ngx_http_core_loc_conf_t *lcf = conf; + char *rv; ngx_conf_t save; + if (lcf->types == NULL) { + lcf->types = ngx_array_create(cf->pool, 64, sizeof(ngx_hash_key_t)); + if (lcf->types == NULL) { + return NGX_CONF_ERROR; + } + } + save = *cf; cf->handler = ngx_http_core_type; cf->handler_conf = conf; @@ -1716,13 +1729,6 @@ ngx_http_core_type(ngx_conf_t *cf, ngx_c ngx_uint_t i, n; ngx_hash_key_t *type; - if (lcf->types == NULL) { - lcf->types = ngx_array_create(cf->pool, 64, sizeof(ngx_hash_key_t)); - if (lcf->types == NULL) { - return NGX_CONF_ERROR; - } - } - content_type = ngx_palloc(cf->pool, sizeof(ngx_str_t)); if (content_type == NULL) { return NGX_CONF_ERROR;