EnforceSSL
Added by Postmodern
at October 12, 2009 02:34
GitHub stats:
watcher(s)
fork(s)
About
EnforceSSL is a Rack middleware app that enforces that users visit specific paths via HTTPS. If a sensitive path is requested over plain-text HTTP, a 307 Redirect will be issued leading to the HTTPS version of the Requested URI.
Usage
use Rack::EnforceSSL, ['/login', /\.xml$/]

