rack-wwwhisper 1.1.13 → 1.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/wwwhisper.rb +7 -1
- data/lib/rack/wwwhisper_version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab5a2bec3ade31c803bab291be030d7208f0c5646f56a4b7e7737f08c60943c1
|
4
|
+
data.tar.gz: aa79160265b00d38eee4cd64ba713d8c893b9e17951e3185df3b29f975a0891a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15e8c3febf49c09838b758f78b6dbae07c4846ea07acb9b17ec26c0e2863ebcfca68bcc57774a1c362325a07c59e6eb962d07e89b0a5f2a992a789b3b5ac78ab
|
7
|
+
data.tar.gz: 0bc46cae1e758ee5cb079b75695bee2af04062e850a9751954a536ed1693cb0a885b09cc5bcca08306acc623a4985a426868b75a0d32ced078f69fbc1b9e0d28
|
data/lib/rack/wwwhisper.rb
CHANGED
@@ -196,7 +196,13 @@ class WWWhisper
|
|
196
196
|
end
|
197
197
|
|
198
198
|
def sub_response_headers_to_rack(rack_req, sub_resp)
|
199
|
-
|
199
|
+
if Rack.const_get('Headers')
|
200
|
+
# Rack 3+
|
201
|
+
rack_headers = Rack::Headers.new()
|
202
|
+
else
|
203
|
+
# Older Rack versions
|
204
|
+
rack_headers = Rack::Utils::HeaderHash.new()
|
205
|
+
end
|
200
206
|
sub_resp.each_capitalized do |header, value|
|
201
207
|
# If sub request returned chunked response, remove the header
|
202
208
|
# (chunks will be combined and returned with 'Content-Length).
|