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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 658f2b9535fa0c452a156aa610e0a56956275046d23c94b050a205e3a12fc72a
4
- data.tar.gz: 4a483e812caa8354e6ef560c44635e1f774e005758c493576bce9140dc24fdd3
3
+ metadata.gz: ab5a2bec3ade31c803bab291be030d7208f0c5646f56a4b7e7737f08c60943c1
4
+ data.tar.gz: aa79160265b00d38eee4cd64ba713d8c893b9e17951e3185df3b29f975a0891a
5
5
  SHA512:
6
- metadata.gz: eda281ffd11f7705acefcd722dacdc24a3bee71b7333dadd7b55c26f1f72f51199a3e4dc84b083b9b4cd6cf7beefcfdf3e726c95230ed9b650efbe156d684b1a
7
- data.tar.gz: da86a61e110c7df6b4af3572b2073ece04a3c2924d334ee7fdcf292deff8b17ef4731e6b998372a5cf6f48327a3de8d71d3b67359b5247b1be00cea1efe5e038
6
+ metadata.gz: 15e8c3febf49c09838b758f78b6dbae07c4846ea07acb9b17ec26c0e2863ebcfca68bcc57774a1c362325a07c59e6eb962d07e89b0a5f2a992a789b3b5ac78ab
7
+ data.tar.gz: 0bc46cae1e758ee5cb079b75695bee2af04062e850a9751954a536ed1693cb0a885b09cc5bcca08306acc623a4985a426868b75a0d32ced078f69fbc1b9e0d28
@@ -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_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).
@@ -1,3 +1,3 @@
1
1
  module Rack
2
- WWWHISPER_VERSION = '1.1.13'
2
+ WWWHISPER_VERSION = '1.1.14'
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.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Wrobel