]> git.kaiwu.me - nginx.git/commitdiff
HTTP/2: fixed debug log about indexed headers.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 14 Sep 2017 16:06:05 +0000 (19:06 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 14 Sep 2017 16:06:05 +0000 (19:06 +0300)
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.

src/http/v2/ngx_http_v2_table.c

index a73748a9878743500f78f73d1bee56e6e820db2f..d4c748ffc7a597e1123e04ccb3132bc49937a87c 100644 (file)
@@ -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--;