comparison src/http/ngx_http_variables.c @ 763:0b0f3d4854c0

variable should not be found if no request body file
author Igor Sysoev <igor@sysoev.ru>
date Wed, 11 Oct 2006 05:32:39 +0000
parents 1606be879985
children c3ebeee31026
comparison
equal deleted inserted replaced
762:bd794e98d7e6 763:0b0f3d4854c0
1143 static ngx_int_t 1143 static ngx_int_t
1144 ngx_http_variable_request_body_file(ngx_http_request_t *r, 1144 ngx_http_variable_request_body_file(ngx_http_request_t *r,
1145 ngx_http_variable_value_t *v, uintptr_t data) 1145 ngx_http_variable_value_t *v, uintptr_t data)
1146 { 1146 {
1147 if (r->request_body == NULL || r->request_body->temp_file == NULL) { 1147 if (r->request_body == NULL || r->request_body->temp_file == NULL) {
1148 v->len = 0; 1148 v->not_found = 1;
1149 v->valid = 1;
1150 v->no_cachable = 0;
1151 v->not_found = 0;
1152 v->data = (u_char *) "";
1153 1149
1154 return NGX_OK; 1150 return NGX_OK;
1155 } 1151 }
1156 1152
1157 v->len = r->request_body->temp_file->file.name.len; 1153 v->len = r->request_body->temp_file->file.name.len;