protocol-http2 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/protocol/http2/connection.rb +1 -0
- data/lib/protocol/http2/padded.rb +6 -4
- data/lib/protocol/http2/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89961e568533a95a580a7eaa79c9d519a9467016b819739f2868385fb2cb2d2f
|
4
|
+
data.tar.gz: 185af0c2c4d5fb02077daf4b5ac1131abb013842f151e24f5b3b0f2b2aef0a60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0c3233cb4842658ad1e013c004fe043d0dc952eb3404bd91acfe6471c6b686da6bec1f81923202ed725713ad6f4cc603a99418eaf565ad317bd301756e551bc
|
7
|
+
data.tar.gz: 72f5fd86a460e9c71cb5d7587c165c7ffe1a8be4f44afd99010e04f7dc18fc85011d5ed723a40a3c3d84831f45acdcfe6e093270938e1dd7066e5acde74dbe9a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -29,11 +29,11 @@ module Protocol
|
|
29
29
|
|
30
30
|
buffer = String.new.b
|
31
31
|
|
32
|
-
buffer << padding_size
|
32
|
+
buffer << padding_size
|
33
33
|
buffer << data
|
34
34
|
|
35
|
-
if padding_size
|
36
|
-
buffer << "\0" *
|
35
|
+
if padding_size
|
36
|
+
buffer << ("\0" * padding_size)
|
37
37
|
end
|
38
38
|
|
39
39
|
super buffer
|
@@ -47,7 +47,9 @@ module Protocol
|
|
47
47
|
def unpack
|
48
48
|
if padded?
|
49
49
|
padding_size = @payload[0].ord
|
50
|
-
|
50
|
+
|
51
|
+
# 1 byte for the padding octet, and padding_size bytes for the padding itself:
|
52
|
+
data_size = @payload.bytesize - (1 + padding_size)
|
51
53
|
|
52
54
|
if data_size < 0
|
53
55
|
raise ProtocolError, "Invalid padding length: #{padding_size}"
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protocol-http2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -40,7 +40,7 @@ cert_chain:
|
|
40
40
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
41
41
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
42
42
|
-----END CERTIFICATE-----
|
43
|
-
date: 2023-02-
|
43
|
+
date: 2023-02-12 00:00:00.000000000 Z
|
44
44
|
dependencies:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: protocol-hpack
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
- !ruby/object:Gem::Version
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
|
-
rubygems_version: 3.4.
|
164
|
+
rubygems_version: 3.4.6
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: A low level implementation of the HTTP/2 protocol.
|
metadata.gz.sig
CHANGED
Binary file
|