src: Print flags in DATA

This commit is contained in:
Tatsuhiro Tsujikawa 2013-08-04 18:44:11 +09:00
parent 690349009d
commit 2a311b3102
1 changed files with 5 additions and 0 deletions

View File

@ -377,6 +377,11 @@ void print_data_frame(print_type ptype, uint16_t length, uint8_t flags,
printf("%sDATA%s frame (length=%d, flags=%d, stream_id=%d)\n", printf("%sDATA%s frame (length=%d, flags=%d, stream_id=%d)\n",
frame_name_ansi_esc(ptype), ansi_escend(), frame_name_ansi_esc(ptype), ansi_escend(),
length, flags, stream_id); length, flags, stream_id);
if(flags) {
nghttp2_frame_hd hd = {length, NGHTTP2_DATA, flags, stream_id};
print_frame_attr_indent();
print_flags(hd);
}
} }
} // namespace } // namespace