class ActionDispatch::SSL

def https_location_for(request)

def https_location_for(request)
  host = @redirect[:host] || request.host
  port = @redirect[:port] || request.port
  location = +"https://#{host}"
  location << ":#{port}" if port != 80 && port != 443
  location << request.fullpath
  location
end