Mercurial > hg > nginx-quic
changeset 7164:044cb349fd3c
Autoindex: discard request body (ticket #1439).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 04 Dec 2017 17:30:02 +0300 |
parents | fc0d06224eda |
children | 1cb92a2d672e |
files | src/http/modules/ngx_http_autoindex_module.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_autoindex_module.c +++ b/src/http/modules/ngx_http_autoindex_module.c @@ -180,6 +180,12 @@ ngx_http_autoindex_handler(ngx_http_requ 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 */ last = ngx_http_map_uri_to_path(r, &path, &root,