mirror of
https://github.com/nginx/nginx.git
synced 2025-06-13 06:12:44 +08:00
variable should not be found if no request body file
This commit is contained in:
parent
7a8b17a553
commit
358ec14ce9
@ -1145,11 +1145,7 @@ ngx_http_variable_request_body_file(ngx_http_request_t *r,
|
|||||||
ngx_http_variable_value_t *v, uintptr_t data)
|
ngx_http_variable_value_t *v, uintptr_t data)
|
||||||
{
|
{
|
||||||
if (r->request_body == NULL || r->request_body->temp_file == NULL) {
|
if (r->request_body == NULL || r->request_body->temp_file == NULL) {
|
||||||
v->len = 0;
|
v->not_found = 1;
|
||||||
v->valid = 1;
|
|
||||||
v->no_cachable = 0;
|
|
||||||
v->not_found = 0;
|
|
||||||
v->data = (u_char *) "";
|
|
||||||
|
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user