From 3e7076c748ef19c1fb23fe2631337240440d6f04 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Tue, 11 Jun 2024 18:15:42 +0300 Subject: [PATCH] fix: correct the useragent we use --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 2eeac5c..decdaa4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -217,7 +217,7 @@ impl AppState { direct_links: Default::default(), http: reqwest::ClientBuilder::new() .redirect(reqwest::redirect::Policy::none()) - .user_agent("limbusart 0.1.0") + .user_agent(format!("{}/{}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"))) .build() .unwrap(), }),