Skip to content

Commit

Permalink
fix: fetch version
Browse files Browse the repository at this point in the history
  • Loading branch information
ztelliot committed Sep 22, 2024
1 parent f09af21 commit b1abe47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/qb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl QBitBackend {
impl Backend for QBitBackend {
async fn describe(&mut self) -> Result<String> {
let client = reqwest::Client::new();
if !self.login {
if !self.login {
let mut form = HashMap::new();
form.insert("username", self.username.clone());
form.insert("password", self.password.clone());
Expand All @@ -60,6 +60,7 @@ impl Backend for QBitBackend {
}
let resp = client
.get(&format!("{}/app/version", self.endpoint))
.header("Cookie", self.cookie.clone().unwrap())
.send()
.await?;
let version = resp.text().await?;
Expand Down

0 comments on commit b1abe47

Please sign in to comment.