summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-04-19 15:30:56 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-04-19 15:30:56 +0000
commit7bdb720d6a7b75021ca7cea17d6f3199b5acf4ca (patch)
tree1ff27cb0b6a00fc3a58aee44f869baa6574f0329 /src/http/ngx_http_core_module.c
parentafae3fd4a4ba16147fa7a4db8e4d90799ee3b56b (diff)
downloadnginx-7bdb720d6a7b75021ca7cea17d6f3199b5acf4ca.tar.gz
nginx-7bdb720d6a7b75021ca7cea17d6f3199b5acf4ca.tar.bz2
nginx-0.3.40-RELEASE importrelease-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.
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index b897fe19c..4a9c2085b 100644
--- 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_request_t *r)
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 *one, const void *two)
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_command_t *dummy, void *conf)
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;