mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Autoindex: discard request body (ticket #1439).
This commit is contained in:
parent
e3baa90da9
commit
53e5a746bf
@ -180,6 +180,12 @@ ngx_http_autoindex_handler(ngx_http_request_t *r)
|
|||||||
return NGX_DECLINED;
|
return NGX_DECLINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rc = ngx_http_discard_request_body(r);
|
||||||
|
|
||||||
|
if (rc != NGX_OK) {
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
/* NGX_DIR_MASK_LEN is lesser than NGX_HTTP_AUTOINDEX_PREALLOCATE */
|
/* NGX_DIR_MASK_LEN is lesser than NGX_HTTP_AUTOINDEX_PREALLOCATE */
|
||||||
|
|
||||||
last = ngx_http_map_uri_to_path(r, &path, &root,
|
last = ngx_http_map_uri_to_path(r, &path, &root,
|
||||||
|
Loading…
Reference in New Issue
Block a user