Welcome! Log In Create A New Profile

Advanced

[nginx] Slice filter: log the expected range in case of range error.

This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Anonymous User
January 16, 2025 12:12PM
details: https://github.com/nginx/nginx/commit/47f862ffad6a7068100d50887c495f80973ca47b
branches: master
commit: 47f862ffad6a7068100d50887c495f80973ca47b
user: Daniel Vasquez Lopez <dvasquezl@nvidia.com>
date: Thu, 21 Nov 2024 14:27:07 -0800
description:
Slice filter: log the expected range in case of range error.


---
src/http/modules/ngx_http_slice_filter_module.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/http/modules/ngx_http_slice_filter_module.c b/src/http/modules/ngx_http_slice_filter_module.c
index 186380a2f..3b0bef629 100644
--- a/src/http/modules/ngx_http_slice_filter_module.c
+++ b/src/http/modules/ngx_http_slice_filter_module.c
@@ -165,8 +165,8 @@ ngx_http_slice_header_filter(ngx_http_request_t *r)

if (cr.start != ctx->start || cr.end != end) {
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
- "unexpected range in slice response: %O-%O",
- cr.start, cr.end);
+ "unexpected range in slice response: %O-%O, "
+ "expected: %O-%O", cr.start, cr.end, ctx->start, end);
return NGX_ERROR;
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Slice filter: log the expected range in case of range error.

Anonymous User 131 January 16, 2025 12:12PM



Online Users

Guests: 209
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready