]> git.kaiwu.me - nginx.git/commitdiff
variable should not be found if no request body file
authorIgor Sysoev <igor@sysoev.ru>
Wed, 11 Oct 2006 05:32:39 +0000 (05:32 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 11 Oct 2006 05:32:39 +0000 (05:32 +0000)
src/http/ngx_http_variables.c

index 9dee6ee9e2180dd8d9629362bb0449e081f8941d..0f1587b647c6cb795c94d370ac979ed60b514729 100644 (file)
@@ -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;
     }