From 350ebb2bee997d6ef305a6e023d9dcc481afb5f8 Mon Sep 17 00:00:00 2001 From: A Farzat Date: Mon, 9 Mar 2026 05:54:43 +0300 Subject: Avoid useless jar clone and update User-Agent --- src/http_client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/http_client.rs b/src/http_client.rs index e8251d3..bc929bc 100644 --- a/src/http_client.rs +++ b/src/http_client.rs @@ -25,8 +25,8 @@ pub fn build_authenticated_client(cookies_path: &PathBuf) -> Result { // Build the client with the cookie provider and a standard User-Agent. let client = Client::builder() - .cookie_provider(Arc::clone(&jar)) - .user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36") + .cookie_provider(jar) + .user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0") .build() .context("Failed to build the HTTP client")?; -- cgit v1.2.3-70-g09d2