Use scheme from request instead of hard coding http