aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_variables.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-10-11 05:32:39 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-10-11 05:32:39 +0000
commit358ec14ce98ee3e6a6f2156496f7f121719f2032 (patch)
tree39829d4b374f0ec1d2c2827893b7fb439d528ff2 /src/http/ngx_http_variables.c
parent7a8b17a553d540ddbb14313f9350c75b5eb0ab62 (diff)
downloadnginx-358ec14ce98ee3e6a6f2156496f7f121719f2032.tar.gz
nginx-358ec14ce98ee3e6a6f2156496f7f121719f2032.zip
variable should not be found if no request body file
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r--src/http/ngx_http_variables.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c
index 9dee6ee9e..0f1587b64 100644
--- a/src/http/ngx_http_variables.c
+++ b/src/http/ngx_http_variables.c
@@ -1145,11 +1145,7 @@ ngx_http_variable_request_body_file(ngx_http_request_t *r,
ngx_http_variable_value_t *v, uintptr_t data)
{
if (r->request_body == NULL || r->request_body->temp_file == NULL) {
- v->len = 0;
- v->valid = 1;
- v->no_cachable = 0;
- v->not_found = 0;
- v->data = (u_char *) "";
+ v->not_found = 1;
return NGX_OK;
}