diff options
author | Jesse Luehrs <doy@tozt.net> | 2024-04-20 15:34:54 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2024-04-20 15:35:39 -0400 |
commit | 19e6c3d38177d0556ca347574681fe38aa006c26 (patch) | |
tree | 822c8906636e5eb5665dca16164c87203baab3e9 | |
parent | cb0dfaa6de7a0246b5d407625521e0947ae38169 (diff) | |
download | rbw-19e6c3d38177d0556ca347574681fe38aa006c26.tar.gz rbw-19e6c3d38177d0556ca347574681fe38aa006c26.zip |
remove previous manual setting of user agent during login
-rw-r--r-- | src/api.rs | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 })?; |