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 +4 -4
- data/lib/redirect/middleware.rb +1 -1
- data/lib/redirect/rails/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: 31f3ec11e9b42b3546ba618c3d5305053ca02727e86e0d5f4246aedddd6bac67
|
4
|
+
data.tar.gz: fbc772b5933252a9399b9c5240d19237bc5c56ad264e9a13bdc397675c677db2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2892c27849cb0713bbc1f1eccc551ab634cbc3206ad02dbad85ea7cdbf9668661f0e6096f7b3f288d8733281ec453ee028e139778f8ce12c7d7ab9d78970f544
|
7
|
+
data.tar.gz: 2c98fb8ae3d142d4227951ee527a7c7a14650944be6b1b4e5a24473d7ad41f7b824124b92dab9d3eb3787b211c3da4f7b956e84f8b7197491c6a105b2d263ca9
|
data/lib/redirect/middleware.rb
CHANGED
@@ -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
|
|