rack-wwwhisper 1.1.13 → 1.1.15
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: 56fa87da05d8ff7462f8b42110d7745d25a98449f52a457b0d20f506c84ff6de
|
4
|
+
data.tar.gz: b4703dc227718a73741fb5d347f00f4d1b43c11803dfe9ff6214ecefc4524b2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c785b6cdb26d65d23bc3d5620fcc48be33658e2048f62873eb53556b0bf24c6913a06537a557adb91fea9e7aa4917626a896720d41b6b3d76624c90f084d706c
|
7
|
+
data.tar.gz: d51417c8611c091cf9f14cad8ea967eafe8eb32e4d90f5e02fe9a0dc833eccfa4be1117f7dc759c6c879f281a06c83e4c5a464682ffc900aa5c57eab993078de
|
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_defined?('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).
|