lib/protocol/hpack/huffman.rb in protocol-hpack-1.2.1 vs lib/protocol/hpack/huffman.rb in protocol-hpack-1.2.2

- old
+ new

@@ -333,9 +333,9 @@ [0x7fffff0, 27], [0x3ffffee, 26], [0x3fffffff, 30], ].each(&:freeze).freeze - ENCODE_TABLE = CODES.map {|c, l| [c].pack('N').unpack('B*').first[-l..-1]}.each(&:freeze).freeze + ENCODE_TABLE = CODES.map {|c, l| [c].pack('N').unpack1('B*')[-l..-1]}.each(&:freeze).freeze end end end