[nginx] HTTP/2: fixed debug log about indexed headers.
Maxim Dounin
mdounin at mdounin.ru
Thu Sep 14 17:17:26 UTC 2017
details: http://hg.nginx.org/nginx/rev/d4b031cf32cf
branches:
changeset: 7107:d4b031cf32cf
user: Maxim Dounin <mdounin at mdounin.ru>
date: Thu Sep 14 19:06:05 2017 +0300
description:
HTTP/2: fixed debug log about indexed headers.
Previously, "get indexed header" message was logged when in fact only
header name was obtained using an index, and "get indexed header name"
was logged when full header representation (name and value) was obtained
using an index. Fixed version logs "get indexed name" and "get indexed
header" respectively.
diffstat:
src/http/v2/ngx_http_v2_table.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/src/http/v2/ngx_http_v2_table.c b/src/http/v2/ngx_http_v2_table.c
--- a/src/http/v2/ngx_http_v2_table.c
+++ b/src/http/v2/ngx_http_v2_table.c
@@ -102,7 +102,7 @@ ngx_http_v2_get_indexed_header(ngx_http_
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0,
"http2 get indexed %s: %ui",
- name_only ? "header" : "header name", index);
+ name_only ? "name" : "header", index);
index--;
More information about the nginx-devel
mailing list