Fix call to request.is_secure()