Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

Commit 83e58c8

Browse files
committed
fix: Proxy URL format whithout authentication
1 parent 12fec62 commit 83e58c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "proton-api-rs"
33
authors = ["Leander Beernaert <lbb-dev@pm.me>"]
4-
version = "0.7.1"
4+
version = "0.7.2"
55
edition = "2021"
66
license = "AGPL-3.0-only"
77
description = "Unofficial implemention of proton REST API in rust"
@@ -50,4 +50,4 @@ required-features = ["http-reqwest"]
5050

5151
[[example]]
5252
name = "user_id_sync"
53-
required-features = ["http-ureq"]
53+
required-features = ["http-ureq"]

src/http/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ impl Proxy {
133133
};
134134

135135
let auth = if let Some(auth) = &self.auth {
136-
format!("{}:{}", auth.username, auth.password.expose_secret())
136+
format!("{}:{}@", auth.username, auth.password.expose_secret())
137137
} else {
138138
String::new()
139139
};
140140

141-
format!("{protocol}://{auth}@{}:{}", self.url, self.port)
141+
format!("{protocol}://{auth}{}:{}", self.url, self.port)
142142
}
143143
}
144144

0 commit comments

Comments
 (0)