Welcome! Log In Create A New Profile

Advanced

[nginx] Autoindex: discard request body (ticket #1439).

Maxim Dounin
December 04, 2017 10:18AM
details: http://hg.nginx.org/nginx/rev/044cb349fd3c
branches:
changeset: 7164:044cb349fd3c
user: Maxim Dounin <mdounin@mdounin.ru>
date: Mon Dec 04 17:30:02 2017 +0300
description:
Autoindex: discard request body (ticket #1439).

diffstat:

src/http/modules/ngx_http_autoindex_module.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff --git a/src/http/modules/ngx_http_autoindex_module.c b/src/http/modules/ngx_http_autoindex_module.c
--- 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,
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Autoindex: discard request body (ticket #1439).

Maxim Dounin 396 December 04, 2017 10:18AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 263
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready