aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2024-04-20 15:34:54 -0400
committerJesse Luehrs <doy@tozt.net>2024-04-20 15:35:39 -0400
commit19e6c3d38177d0556ca347574681fe38aa006c26 (patch)
tree822c8906636e5eb5665dca16164c87203baab3e9
parentcb0dfaa6de7a0246b5d407625521e0947ae38169 (diff)
downloadrbw-19e6c3d38177d0556ca347574681fe38aa006c26.tar.gz
rbw-19e6c3d38177d0556ca347574681fe38aa006c26.zip
remove previous manual setting of user agent during login
-rw-r--r--src/api.rs8
1 files 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 })?;