rack-delegate 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/delegate/delegator.rb +4 -0
- data/lib/rack/delegate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b827bc57057bfb1f8d44c1d4587e0722e99d1be8
|
4
|
+
data.tar.gz: 20866a6684f0dc06f29e04d1e3f00b3fe6e2c996
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca86c524f8a984abd632894bd24a9e76770414e4a0f374abb0bf332b00e949c5eb959122a82bd0bdbb6b5b7e2cd3b75812709d93aaff6af35d7a4f083900111c
|
7
|
+
data.tar.gz: 70fd9e5e260893a0b5482b6c3b53d11d0e7c97c2ac60810aa4d6c481344132dc4051047b4afca8c57b355e8599198ddf819a9757dfb93645a1f1a6d6d6e5cf74
|
@@ -40,6 +40,10 @@ module Rack
|
|
40
40
|
def normalize_headers_for(http_response)
|
41
41
|
http_response.to_hash.tap do |headers|
|
42
42
|
headers.delete('status')
|
43
|
+
|
44
|
+
# Since Ruby 2.1 Net::HTTPHeader#to_hash returns the value as an
|
45
|
+
# array of values and not a string. Try to coerce it for 2.0 support.
|
46
|
+
headers.each { |header, value| headers[header] = Array(value).join('; ') }
|
43
47
|
end
|
44
48
|
end
|
45
49
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-delegate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genadi Samokovarov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|