Commit ce53d7bd authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

src: Don't output priority if NGHTTP2_FLAG_PRIORITY is not set

parent c7c283f3
......@@ -331,8 +331,11 @@ void print_frame(print_type ptype, const nghttp2_frame *frame)
break;
case NGHTTP2_HEADERS:
print_frame_attr_indent();
fprintf(outfile, "(pri=%d, padlen=%zu)\n",
frame->headers.pri, frame->headers.padlen);
fprintf(outfile, "(");
if(frame->hd.flags & NGHTTP2_FLAG_PRIORITY) {
fprintf(outfile, "pri=%d, ", frame->headers.pri);
}
fprintf(outfile, "padlen=%zu)\n", frame->headers.padlen);
switch(frame->headers.cat) {
case NGHTTP2_HCAT_REQUEST:
print_frame_attr_indent();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment