print_frame: Show pri only when NGHTTP2_FLAG_PRIORITY flag set

This commit is contained in:
Tatsuhiro Tsujikawa 2013-07-17 01:13:58 +09:00
parent 307e13375d
commit 257bc1c924
1 changed files with 4 additions and 2 deletions

View File

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