redirect-rails 0.3.4 → 0.3.5

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: 2f8daaae55ea15a53bea6dac7a5699f7167414e6eec3ed0b64314f4aeac2e272
4
- data.tar.gz: 48a60747d0a970f3e05d7e2bf445d62ebcd18b61baed41c43ea50ddec4a447a4
3
+ metadata.gz: 31f3ec11e9b42b3546ba618c3d5305053ca02727e86e0d5f4246aedddd6bac67
4
+ data.tar.gz: fbc772b5933252a9399b9c5240d19237bc5c56ad264e9a13bdc397675c677db2
5
5
  SHA512:
6
- metadata.gz: 79d86e2e879d8cd790df0e9e3cfdf8a593203f9c7981b73ac09b8e9ea11b4de466cb70a7ce0cb881287769d95b126d3e0990bf3b54189a933f9ceb1c2a283aa8
7
- data.tar.gz: 65c91d8c654d2ee7ef3c13828280d921ff4ce29e83b6239dcd76f71389425d2e14a9c493f237eac921191a885f2bfd4b63a77dfdce99af7682dd8396d51625b9
6
+ metadata.gz: 2892c27849cb0713bbc1f1eccc551ab634cbc3206ad02dbad85ea7cdbf9668661f0e6096f7b3f288d8733281ec453ee028e139778f8ce12c7d7ab9d78970f544
7
+ data.tar.gz: 2c98fb8ae3d142d4227951ee527a7c7a14650944be6b1b4e5a24473d7ad41f7b824124b92dab9d3eb3787b211c3da4f7b956e84f8b7197491c6a105b2d263ca9
@@ -36,9 +36,9 @@ module Redirect
36
36
 
37
37
  def redirect_to(uri)
38
38
  headers = { "Location": uri,
39
+ "Content-Type": @request.content_type,
39
40
  "Pragma": "no-cache",
40
41
  "Cache-Control": "no-cache; max-age=0" }
41
- headers["Content-Type"] = @request["Content-Type"] if @request.has_key?("Content-Type")
42
42
  [302, headers, [redirect_message(uri)]]
43
43
  end
44
44
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Redirect
4
4
  module Rails
5
- VERSION = "0.3.4"
5
+ VERSION = "0.3.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redirect-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke