nginx-0.3.40-RELEASE import
*) Feature: the ngx_http_dav_module supports the MKCOL method.
*) Feature: the "create_full_put_path" directive.
*) Feature: the "$limit_rate" variable.
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index b897fe1..4a9c208 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -753,6 +753,10 @@
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 @@
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_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;