From 329fe20553bd333e83351e10657c28841e086380 Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 24 Mar 2021 19:48:17 +0100 Subject: [PATCH] moving user_agent to constants --- src/config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.rs b/src/config.rs index 34fc4a8..38207ea 100644 --- a/src/config.rs +++ b/src/config.rs @@ -15,6 +15,9 @@ pub const ADJ_LIST_FILE: &str = "./adj-list.txt"; pub const NAME_LIST_FILE: &str = "./name-list.txt"; pub const LOC_FILE: &str = "./lang.json"; +//pub const USER_AGENT: &str = "Actix-web"; +pub const USER_AGENT: &str = "Mozilla/5.0 (X11; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0"; + lazy_static! { pub static ref CONFIG: Config = Config::init(); pub static ref ADJ_LIST: Vec =