nghttp_hd: Use huffman encoding only when it is usable
We use huffman encoding only when its encoded length is strictly less than the original length. As noted in the HPACK draft, the length of name/value is now 7-bit prefix and its MSB is 1 if the following string is huffman encoded.
Showing
This diff is collapsed.
Please register or sign in to comment