diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-01-25 08:45:04 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-01-25 08:45:04 +0000 |
commit | cd5b99a0450ea5c6bdf8a40d607760d93b1c1190 (patch) | |
tree | 90561613d8ae962ab9f5f96c652ffe315b030f83 /src/http/ngx_http_core_module.c | |
parent | 3a58cc90b5f7cd10e8dcb50abddb8d1218b32746 (diff) | |
download | nginx-cd5b99a0450ea5c6bdf8a40d607760d93b1c1190.tar.gz nginx-cd5b99a0450ea5c6bdf8a40d607760d93b1c1190.zip |
undo "client_body_in_file_only any"
and introduce "client_body_in_file_only clean"
introduce ngx_pool_delete_file() to not break a possible third-party
ngx_pool_cleanup_file() usage that may lead to an removal of the useful files
delete unnecessary ngx_http_finalize_request_body()
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r-- | src/http/ngx_http_core_module.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 63efec865..c35ccacda 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -25,7 +25,7 @@ typedef struct { #define NGX_HTTP_REQUEST_BODY_FILE_OFF 0 #define NGX_HTTP_REQUEST_BODY_FILE_ON 1 -#define NGX_HTTP_REQUEST_BODY_FILE_ANY 2 +#define NGX_HTTP_REQUEST_BODY_FILE_CLEAN 2 static ngx_int_t ngx_http_core_find_location(ngx_http_request_t *r, @@ -82,7 +82,7 @@ static ngx_conf_deprecated_t ngx_conf_deprecated_optimize_host_names = { static ngx_conf_enum_t ngx_http_core_request_body_in_file[] = { { ngx_string("off"), NGX_HTTP_REQUEST_BODY_FILE_OFF }, { ngx_string("on"), NGX_HTTP_REQUEST_BODY_FILE_ON }, - { ngx_string("any"), NGX_HTTP_REQUEST_BODY_FILE_ANY }, + { ngx_string("clean"), NGX_HTTP_REQUEST_BODY_FILE_CLEAN }, { ngx_null_string, 0 } }; @@ -890,12 +890,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_in_clean_file = + clcf->client_body_in_file_only == NGX_HTTP_REQUEST_BODY_FILE_CLEAN; r->request_body_file_log_level = NGX_LOG_NOTICE; - if (clcf->client_body_in_file_only == NGX_HTTP_REQUEST_BODY_FILE_ON) { - r->request_body_delete_incomplete_file = 1; - } - } else { r->request_body_file_log_level = NGX_LOG_WARN; } |