Skip to content

Commit 51e926b

Browse files
committed
Return client request to using string joins for url
1 parent dbdda41 commit 51e926b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/clients.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ impl TiledClient {
2222
headers: Option<HeaderMap>,
2323
) -> ClientResult<T> {
2424
info!("Requesting from tiled: {}", endpoint);
25-
let mut url = self.address.clone();
26-
url.set_path(endpoint);
27-
25+
let url = self.address.join(endpoint)?;
2826
let client = reqwest::Client::new();
2927
let request = match headers {
3028
Some(headers) => client.get(url).headers(headers),

0 commit comments

Comments
 (0)