protocol-hpack 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4f37a74f63435d104e330527a394230a528ac8e1739c0ec6dcab1e0d40ba2fa
4
- data.tar.gz: 15e11514d7bf7dc987577272e73114ac0179c750f065ddde4eceb8b10f19e46a
3
+ metadata.gz: 0e5978b049fabc4145c1ba4b4dd611f511e6c8dbfcdac7eb38f25eb4970cd261
4
+ data.tar.gz: e779a4cbef50b8a6f2b95b2fb309dfdbc0f6bb2d14398354206e4ad3501dfe5d
5
5
  SHA512:
6
- metadata.gz: 9c6cf113a2141feb408615117dfed35d13a61a297f47bd4cfd2bcc63d42b38c21f875ef1dc99a0542035a17b7cd630c05fb6fb885b9294f8dc46533efb5bb48d
7
- data.tar.gz: d7f96e39202967a77c73a39a4ca65e582676e8b533f990e3bd02062e1fe279387d663918247aa4baf3a50ea3da42099068783359e2b0a21ed1bd94e08909a18b
6
+ metadata.gz: eabf4b0b56fc9423793dbe57b396ada51cbe81f3fa67f9c1e96cbe180c4410c234c6eca9babe4dc71b940e0c59fa5a54e2e5d96cdaca4322e009d31a0fd0d94e
7
+ data.tar.gz: afae37392531d21d10c1c304ee2a46a3f0c726fafc6b31b6c6d517004f768978a4d3b644057b21499808e882785d05ebc86cf878fd0bebc1d75378527a193380
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  Provides a compressor and decompressor for HTTP 2.0 headers, HPACK, as defined by [RFC7541](https://tools.ietf.org/html/rfc7541).
4
4
 
5
5
  [![Build Status](https://secure.travis-ci.com/socketry/protocol-hpack.svg)](http://travis-ci.com/socketry/protocol-hpack)
6
+ [![Coverage Status](https://coveralls.io/repos/github/socketry/protocol-hpack/badge.svg?branch=master)](https://coveralls.io/github/socketry/protocol-hpack?branch=master)
6
7
 
7
8
  ## Installation
8
9
 
@@ -149,11 +149,17 @@ module Protocol
149
149
  # @return [Array] +[[name, value], ...]+
150
150
  def decode(list = [])
151
151
  while !end?
152
- if pair = @context.decode(read_header)
152
+ command = read_header
153
+
154
+ if pair = @context.decode(command)
153
155
  list << pair
154
156
  end
155
157
  end
156
158
 
159
+ if command and command[:type] == :change_table_size
160
+ raise CompressionError, "Trailing table size update!"
161
+ end
162
+
157
163
  return list
158
164
  end
159
165
  end
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Protocol
22
22
  module HPACK
23
- VERSION = "1.2.0"
23
+ VERSION = "1.2.1"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-hpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
- rubygems_version: 3.0.3
113
+ rubygems_version: 3.0.2
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: A compresssor and decompressor for HTTP 2.0 HPACK.