redirect-rails 0.3.3 → 0.3.4

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: 60becce35ef849d207b8508b9ca140f837e56f63c7c36bef05e3d8e6383a9156
4
- data.tar.gz: d6a99a2408a6db4de6b5e1ac346f93d5cd2358a87f0261ae2c763d0fa09b6bd8
3
+ metadata.gz: 2f8daaae55ea15a53bea6dac7a5699f7167414e6eec3ed0b64314f4aeac2e272
4
+ data.tar.gz: 48a60747d0a970f3e05d7e2bf445d62ebcd18b61baed41c43ea50ddec4a447a4
5
5
  SHA512:
6
- metadata.gz: 17bef94358e67f4adcd6633ba93d5d837ec3458b53eee706b0b6e20c739c981ca3c68f6a8b7390a702cb2520679ab5522ca9ab6d918449f6970b258097536e98
7
- data.tar.gz: 2e3ea66bb08bc96807157ee5347b3a0767fe52a5bc9d90a3534c1ab792b4d3a7f1ce83691e623cf2f6ec7b7f1654b734164d1ad5e9687c397d5892e6492cddeb
6
+ metadata.gz: 79d86e2e879d8cd790df0e9e3cfdf8a593203f9c7981b73ac09b8e9ea11b4de466cb70a7ce0cb881287769d95b126d3e0990bf3b54189a933f9ceb1c2a283aa8
7
+ data.tar.gz: 65c91d8c654d2ee7ef3c13828280d921ff4ce29e83b6239dcd76f71389425d2e14a9c493f237eac921191a885f2bfd4b63a77dfdce99af7682dd8396d51625b9
@@ -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"],
40
39
  "Pragma": "no-cache",
41
40
  "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.3"
5
+ VERSION = "0.3.4"
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.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke