src: Print padlen first
This commit is contained in:
parent
c12b6bc360
commit
bd7d335d9a
|
@ -346,17 +346,17 @@ void print_frame(print_type ptype, const nghttp2_frame *frame)
|
||||||
break;
|
break;
|
||||||
case NGHTTP2_HEADERS:
|
case NGHTTP2_HEADERS:
|
||||||
print_frame_attr_indent();
|
print_frame_attr_indent();
|
||||||
fprintf(outfile, "(");
|
fprintf(outfile, "(padlen=%zu", frame->headers.padlen);
|
||||||
if(frame->hd.flags & NGHTTP2_FLAG_PRIORITY_GROUP) {
|
if(frame->hd.flags & NGHTTP2_FLAG_PRIORITY_GROUP) {
|
||||||
fprintf(outfile, "pri_group_id=%d, weight=%u, ",
|
fprintf(outfile, ", pri_group_id=%d, weight=%u",
|
||||||
frame->headers.pri_spec.group.pri_group_id,
|
frame->headers.pri_spec.group.pri_group_id,
|
||||||
frame->headers.pri_spec.group.weight);
|
frame->headers.pri_spec.group.weight);
|
||||||
} else if(frame->hd.flags & NGHTTP2_FLAG_PRIORITY_DEPENDENCY) {
|
} else if(frame->hd.flags & NGHTTP2_FLAG_PRIORITY_DEPENDENCY) {
|
||||||
fprintf(outfile, "stream_id=%d, exclusive=%d, ",
|
fprintf(outfile, ", stream_id=%d, exclusive=%d",
|
||||||
frame->headers.pri_spec.dep.stream_id,
|
frame->headers.pri_spec.dep.stream_id,
|
||||||
frame->headers.pri_spec.dep.exclusive);
|
frame->headers.pri_spec.dep.exclusive);
|
||||||
}
|
}
|
||||||
fprintf(outfile, "padlen=%zu)\n", frame->headers.padlen);
|
fprintf(outfile, ")\n");
|
||||||
switch(frame->headers.cat) {
|
switch(frame->headers.cat) {
|
||||||
case NGHTTP2_HCAT_REQUEST:
|
case NGHTTP2_HCAT_REQUEST:
|
||||||
print_frame_attr_indent();
|
print_frame_attr_indent();
|
||||||
|
@ -413,9 +413,9 @@ void print_frame(print_type ptype, const nghttp2_frame *frame)
|
||||||
break;
|
break;
|
||||||
case NGHTTP2_PUSH_PROMISE:
|
case NGHTTP2_PUSH_PROMISE:
|
||||||
print_frame_attr_indent();
|
print_frame_attr_indent();
|
||||||
fprintf(outfile, "(promised_stream_id=%d, padlen=%zu)\n",
|
fprintf(outfile, "(padlen=%zu, promised_stream_id=%d)\n",
|
||||||
frame->push_promise.promised_stream_id,
|
frame->push_promise.padlen,
|
||||||
frame->push_promise.padlen);
|
frame->push_promise.promised_stream_id);
|
||||||
print_nv(frame->push_promise.nva, frame->push_promise.nvlen);
|
print_nv(frame->push_promise.nva, frame->push_promise.nvlen);
|
||||||
break;
|
break;
|
||||||
case NGHTTP2_PING:
|
case NGHTTP2_PING:
|
||||||
|
|
Loading…
Reference in New Issue