summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2017-09-14 19:06:05 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2017-09-14 19:06:05 +0300
commitfc1575109e88ccbc7a6d099f15b42781c8471360 (patch)
treec3f6efb1cf2e0188632f90533a50fc693a9cfeab
parent8f6c5306fb3c32147d0f5835206a8c6101247eec (diff)
downloadnginx-fc1575109e88ccbc7a6d099f15b42781c8471360.tar.gz
nginx-fc1575109e88ccbc7a6d099f15b42781c8471360.tar.bz2
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.
-rw-r--r--src/http/v2/ngx_http_v2_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/v2/ngx_http_v2_table.c b/src/http/v2/ngx_http_v2_table.c
index a73748a98..d4c748ffc 100644
--- 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_v2_connection_t *h2c, ngx_uint_t index,
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--;