From 19e6c3d38177d0556ca347574681fe38aa006c26 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 20 Apr 2024 15:34:54 -0400 Subject: remove previous manual setting of user agent during login --- src/api.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/api.rs b/src/api.rs index be8c538..85d2265 100644 --- a/src/api.rs +++ b/src/api.rs @@ -713,7 +713,7 @@ impl Client { .map_err(|e| Error::CreateReqwestClient { source: e })?; Ok(reqwest::Client::builder() .user_agent(format!( - "{}-{}", + "{}/{}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION") )) @@ -723,7 +723,7 @@ impl Client { } else { Ok(reqwest::Client::builder() .user_agent(format!( - "{}-{}", + "{}/{}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION") )) @@ -837,10 +837,6 @@ impl Client { "auth-email", crate::base64::encode_url_safe_no_pad(email), ) - .header( - "user-agent", - format!("rbw/{}", env!("CARGO_PKG_VERSION")), - ) .send() .await .map_err(|source| Error::Reqwest { source })?; -- cgit v1.2.3-54-g00ecf