Mercurial > hg > nginx
comparison src/http/modules/ngx_http_autoindex_module.c @ 7164:044cb349fd3c
Autoindex: discard request body (ticket #1439).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 04 Dec 2017 17:30:02 +0300 |
parents | 99751fe3bc3b |
children | 170922952477 |
comparison
equal
deleted
inserted
replaced
7163:fc0d06224eda | 7164:044cb349fd3c |
---|---|
178 | 178 |
179 if (!alcf->enable) { | 179 if (!alcf->enable) { |
180 return NGX_DECLINED; | 180 return NGX_DECLINED; |
181 } | 181 } |
182 | 182 |
183 rc = ngx_http_discard_request_body(r); | |
184 | |
185 if (rc != NGX_OK) { | |
186 return rc; | |
187 } | |
188 | |
183 /* NGX_DIR_MASK_LEN is lesser than NGX_HTTP_AUTOINDEX_PREALLOCATE */ | 189 /* NGX_DIR_MASK_LEN is lesser than NGX_HTTP_AUTOINDEX_PREALLOCATE */ |
184 | 190 |
185 last = ngx_http_map_uri_to_path(r, &path, &root, | 191 last = ngx_http_map_uri_to_path(r, &path, &root, |
186 NGX_HTTP_AUTOINDEX_PREALLOCATE); | 192 NGX_HTTP_AUTOINDEX_PREALLOCATE); |
187 if (last == NULL) { | 193 if (last == NULL) { |