http-protocol 0.6.1 → 0.6.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 +3 -1
- 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: c1b76ea55a51799658ab7d9838a5f0c59fd6928e62907093fe5082962db45633
|
4
|
+
data.tar.gz: d4af58357d2c2acf313ce20aba89c3ba4133214a630bcbca237850718d4ed030
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f356e2d520ec0b4403b900699895b4af175e94860cb6e7d9dd402298d9e299c3f71f68e2cafb2af282011f4d9d15f933832b4643394999b8979cf96b2dc9c33
|
7
|
+
data.tar.gz: 948892bbb053c697a59bd5efa9c8aafa99425a1b401d88b044e7d2a274e4c373f8e13af478b99785dbd41700ae9cb62d459480f4b771ebfb020a4262935787c0
|
@@ -196,6 +196,7 @@ module HTTP
|
|
196
196
|
end
|
197
197
|
end
|
198
198
|
|
199
|
+
# Used for merging objects into a sequential list of headers. Normalizes header keys and values.
|
199
200
|
class Merged
|
200
201
|
def initialize(*all)
|
201
202
|
@all = all
|
@@ -205,10 +206,11 @@ module HTTP
|
|
205
206
|
@all << headers
|
206
207
|
end
|
207
208
|
|
209
|
+
# @yield [String, String] header key (lower case) and value (as string).
|
208
210
|
def each(&block)
|
209
211
|
@all.each do |headers|
|
210
212
|
headers.each do |key, value|
|
211
|
-
yield key, value.to_s
|
213
|
+
yield key.downcase, value.to_s
|
212
214
|
end
|
213
215
|
end
|
214
216
|
end
|
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.6.
|
4
|
+
version: 0.6.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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-hpack
|