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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 658f2b9535fa0c452a156aa610e0a56956275046d23c94b050a205e3a12fc72a
4
- data.tar.gz: 4a483e812caa8354e6ef560c44635e1f774e005758c493576bce9140dc24fdd3
3
+ metadata.gz: 56fa87da05d8ff7462f8b42110d7745d25a98449f52a457b0d20f506c84ff6de
4
+ data.tar.gz: b4703dc227718a73741fb5d347f00f4d1b43c11803dfe9ff6214ecefc4524b2e
5
5
  SHA512:
6
- metadata.gz: eda281ffd11f7705acefcd722dacdc24a3bee71b7333dadd7b55c26f1f72f51199a3e4dc84b083b9b4cd6cf7beefcfdf3e726c95230ed9b650efbe156d684b1a
7
- data.tar.gz: da86a61e110c7df6b4af3572b2073ece04a3c2924d334ee7fdcf292deff8b17ef4731e6b998372a5cf6f48327a3de8d71d3b67359b5247b1be00cea1efe5e038
6
+ metadata.gz: c785b6cdb26d65d23bc3d5620fcc48be33658e2048f62873eb53556b0bf24c6913a06537a557adb91fea9e7aa4917626a896720d41b6b3d76624c90f084d706c
7
+ data.tar.gz: d51417c8611c091cf9f14cad8ea967eafe8eb32e4d90f5e02fe9a0dc833eccfa4be1117f7dc759c6c879f281a06c83e4c5a464682ffc900aa5c57eab993078de
@@ -196,7 +196,13 @@ class WWWhisper
196
196
  end
197
197
 
198
198
  def sub_response_headers_to_rack(rack_req, sub_resp)
199
- rack_headers = Rack::Headers.new()
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).
@@ -1,3 +1,3 @@
1
1
  module Rack
2
- WWWHISPER_VERSION = '1.1.13'
2
+ WWWHISPER_VERSION = '1.1.15'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-wwwhisper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.13
4
+ version: 1.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Wrobel