lib/protocol/hpack/compressor.rb in protocol-hpack-1.1.0 vs lib/protocol/hpack/compressor.rb in protocol-hpack-1.2.0
- old
+ new
@@ -98,11 +98,11 @@
write_bytes(bytes.pack('C*'))
end
def huffman
- @context.options[:huffman]
+ @context.huffman
end
# Encodes provided value via string literal representation.
# - http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-10#section-5.2
#
@@ -156,10 +156,10 @@
first = @buffer.bytesize
case command[:type]
when :indexed
write_integer(command[:name] + 1, representation[:prefix])
- when :changetablesize
+ when :change_table_size
write_integer(command[:value], representation[:prefix])
else
if command[:name].is_a? Integer
write_integer(command[:name] + 1, representation[:prefix])
else