From 257bc1c924942f5daa88e6ab8420f969c3ebc74d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 17 Jul 2013 01:13:58 +0900 Subject: [PATCH] print_frame: Show pri only when NGHTTP2_FLAG_PRIORITY flag set --- src/nghttp2_ssl.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nghttp2_ssl.cc b/src/nghttp2_ssl.cc index b6cfcfe4..d7a533df 100644 --- a/src/nghttp2_ssl.cc +++ b/src/nghttp2_ssl.cc @@ -625,8 +625,10 @@ void print_frame(print_type ptype, nghttp2_frame *frame) } switch(frame->hd.type) { case NGHTTP2_HEADERS: - print_frame_attr_indent(); - printf("(pri=%d)\n", frame->headers.pri); + if(frame->hd.flags & NGHTTP2_FLAG_PRIORITY) { + print_frame_attr_indent(); + printf("(pri=%d)\n", frame->headers.pri); + } switch(frame->headers.cat) { case NGHTTP2_HCAT_START_STREAM: print_frame_attr_indent();