]> git.kaiwu.me - nginx.git/commitdiff
Slice filter: log the expected range in case of range error.
authorDaniel Vasquez Lopez <dvasquezl@nvidia.com>
Thu, 21 Nov 2024 22:27:07 +0000 (14:27 -0800)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Thu, 16 Jan 2025 17:09:59 +0000 (21:09 +0400)
src/http/modules/ngx_http_slice_filter_module.c

index 186380a2f3cb29e452e52522f62f7a88944ba2fd..3b0bef629e55d1f3351fbfdcb9819ca6e2417c59 100644 (file)
@@ -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;
     }