From 66b6787fbee8c841d5253614240ea30971ef524d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 24 Feb 2015 23:12:12 +0900 Subject: [PATCH] src: Use "sensitive" to indicate "never indexed" header field --- src/app_helper.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app_helper.cc b/src/app_helper.cc index f247a807..64d16179 100644 --- a/src/app_helper.cc +++ b/src/app_helper.cc @@ -408,8 +408,11 @@ int verbose_on_header_callback(nghttp2_session *session, namelen, valuelen}; print_timer(); - fprintf(outfile, " recv (stream_id=%d, noind=%d) ", frame->hd.stream_id, - (flags & NGHTTP2_NV_FLAG_NO_INDEX) != 0); + fprintf(outfile, " recv (stream_id=%d", frame->hd.stream_id); + if (flags & NGHTTP2_NV_FLAG_NO_INDEX) { + fprintf(outfile, ", sensitive"); + } + fprintf(outfile, ") "); print_nv(&nv); fflush(outfile);