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

noreply at nginx.com noreply at nginx.com
Thu Jan 16 17:10:02 UTC 2025


details:   https://github.com/nginx/nginx/commit/47f862ffad6a7068100d50887c495f80973ca47b
branches:  master
commit:    47f862ffad6a7068100d50887c495f80973ca47b
user:      Daniel Vasquez Lopez <dvasquezl at 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;
     }
 


More information about the nginx-devel mailing list