http-protocol 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/http/protocol/headers.rb +16 -3
- data/lib/http/protocol/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab58f8ee09a13973ac493df6d4678e82ecc97bd5eb6d92d10aca12a64acae9e2
|
4
|
+
data.tar.gz: 718c199dcecf01e0b288a2b6bc027d66a654c7e3f06796d32ea3e4eaeb00fb41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ab242c757ea3c2f71024be7411c46bc383a5257b4210dee9b333a75d62d184366a63338088dec6dd5a378a600458897adcb5231fba111df6857dd34ba35bfa7
|
7
|
+
data.tar.gz: 589a760a9e0c6a95bbae07c28005b9736c7cd73cba4a5143a2088b6cb50792b7cba977e7f34c41fb057c55ccec012541f39110a79072f835f175749e6f1b4e78
|
@@ -64,9 +64,22 @@ module HTTP
|
|
64
64
|
self.new(hash.to_a)
|
65
65
|
end
|
66
66
|
|
67
|
-
def initialize(fields =
|
68
|
-
|
69
|
-
|
67
|
+
def initialize(fields = nil, indexed = nil)
|
68
|
+
if fields
|
69
|
+
@fields = fields.dup
|
70
|
+
else
|
71
|
+
@fields = []
|
72
|
+
end
|
73
|
+
|
74
|
+
if indexed
|
75
|
+
@indexed = indexed.dup
|
76
|
+
else
|
77
|
+
@indexed = self.to_h
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def dup
|
82
|
+
self.class.new(@fields, @indexed)
|
70
83
|
end
|
71
84
|
|
72
85
|
attr :fields
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http-protocol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-hpack
|