Revert "can set user agent."

This reverts commit 87cc6dc5d33702404fc67cb03ae8a04d98fb5e01.