Don't use %ENV, there is not always exists `HTTP_USER_AGENT`. Use `$self->request->http_header('User-Agent')`