Fixed user-agent setting

Forgot to actually use the requet object. This has been fixed.