Sha256: 914076dc9b1b55249e7a97adbd28130985cdcb618e9a7535b0f98b37b2bded98
Contents?: true
Size: 281 Bytes
Versions: 9
Compression:
Stored size: 281 Bytes
Contents
case ENV['FORCE_SSL'] when /t|true|yes|y|on/ Rails.application.config.middleware.use SslEnforcerOnlyProtocol, :https_port => ENV['HOST_PORT'] end BEGIN { class SslEnforcerOnlyProtocol < Rack::SslEnforcer def current_scheme @request.scheme == 'https' end end }
Version data entries
9 entries across 9 versions & 1 rubygems