class Sinatra::Request
def secure?
Whether or not the web server (or a reverse proxy in front of it) is
def secure? @env['HTTPS'] == 'on' or @env['HTTP_X_FORWARDED_PROTO'] == 'https' or @env['rack.url_scheme'] == 'https' end
def secure? @env['HTTPS'] == 'on' or @env['HTTP_X_FORWARDED_PROTO'] == 'https' or @env['rack.url_scheme'] == 'https' end