method
redirect_to_https
v5.0.0.1 -
Show latest stable
- Class:
ActionDispatch::SSL
redirect_to_https(request)private
No documentation available.
# File actionpack/lib/action_dispatch/middleware/ssl.rb, line 134
def redirect_to_https(request)
[ @redirect.fetch(:status, 301),
{ 'Content-Type' => 'text/html',
'Location' => https_location_for(request) },
@redirect.fetch(:body, []) ]
end