Commit 28aea5c6 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

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.
parent a658f136
This diff is collapsed.
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