print_frame: Show pri only when NGHTTP2_FLAG_PRIORITY flag set
This commit is contained in:
parent
307e13375d
commit
257bc1c924
|
@ -625,8 +625,10 @@ void print_frame(print_type ptype, nghttp2_frame *frame)
|
||||||
}
|
}
|
||||||
switch(frame->hd.type) {
|
switch(frame->hd.type) {
|
||||||
case NGHTTP2_HEADERS:
|
case NGHTTP2_HEADERS:
|
||||||
print_frame_attr_indent();
|
if(frame->hd.flags & NGHTTP2_FLAG_PRIORITY) {
|
||||||
printf("(pri=%d)\n", frame->headers.pri);
|
print_frame_attr_indent();
|
||||||
|
printf("(pri=%d)\n", frame->headers.pri);
|
||||||
|
}
|
||||||
switch(frame->headers.cat) {
|
switch(frame->headers.cat) {
|
||||||
case NGHTTP2_HCAT_START_STREAM:
|
case NGHTTP2_HCAT_START_STREAM:
|
||||||
print_frame_attr_indent();
|
print_frame_attr_indent();
|
||||||
|
|
Loading…
Reference in New Issue