Switch to use request.proxy instead of manually doing it.