ssl_enforcer 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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