bugfixes, better handling of server url changes
This commit is contained in:
@@ -24,4 +24,5 @@ tokio = { version = "1.37.0", features = ["full"] }
|
||||
tokio-tungstenite = "0.26.2"
|
||||
tokio-util = { version = "0.7.15", features = ["futures-util"] }
|
||||
tungstenite = "0.26.2"
|
||||
urlencoding = "2.1.3"
|
||||
uuid = { version = "1.6.1", features = ["v4", "fast-rng", "macro-diagnostics"] }
|
||||
|
||||
@@ -346,7 +346,8 @@ impl<K: AuthenticationStore + Send + Sync> APIInterface for HTTPAPIClient<K> {
|
||||
.await
|
||||
.map_err(|e| Error::ClientError(e.to_string()))?;
|
||||
|
||||
let endpoint = format!("uploadAttachment?filename={}", filename);
|
||||
let encoded_filename = urlencoding::encode(filename);
|
||||
let endpoint = format!("uploadAttachment?filename={}", encoded_filename);
|
||||
let mut bytes_opt = Some(bytes);
|
||||
|
||||
let response: UploadAttachmentResponse = self
|
||||
|
||||
Reference in New Issue
Block a user