src: Use "sensitive" to indicate "never indexed" header field

This commit is contained in:
Tatsuhiro Tsujikawa 2015-02-24 23:12:12 +09:00
parent f2a498e3c4
commit 66b6787fbe
1 changed files with 5 additions and 2 deletions

View File

@ -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);