ssl_enforcer 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ssl_enforcer/enforcer.rb +1 -1
- data/lib/ssl_enforcer/version.rb +1 -1
- metadata +1 -1
@@ -35,7 +35,7 @@ class SSLEnforcer::Enforcer
|
|
35
35
|
# Hack to deal with heroku redirect issues.
|
36
36
|
# http://rack.lighthouseapp.com/projects/22435/tickets/101
|
37
37
|
scheme = (env["SERVER_PORT"] == "443") ? :https : :http
|
38
|
-
|
38
|
+
scheme = env["HTTP_X_FORWARDED_PROTO"] if env["HTTP_X_FORWARDED_PROTO"]
|
39
39
|
|
40
40
|
# If the "only" and or "exceptions" options have not been passed, then
|
41
41
|
# we want to force SSL on ALL subdomains
|
data/lib/ssl_enforcer/version.rb
CHANGED