From ade46108fc9acf60e34ca3cf6f98ad76343e510e Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 11 Oct 2006 05:32:39 +0000 Subject: [PATCH] variable should not be found if no request body file --- src/http/ngx_http_variables.c | 6 +----- 1 file changed, 1 insertion(+), 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; }