Skip to content

Commit

Permalink
Pass User-Agent header to prevent login from returning 400
Browse files Browse the repository at this point in the history
Fixes #145
  • Loading branch information
Ty3uK committed Dec 20, 2023
1 parent bb1791d commit 40a33ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,10 @@ 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 })?;
Expand Down

0 comments on commit 40a33ec

Please sign in to comment.