aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-01-01 14:39:02 +0100
committerHarald Eilertsen <haraldei@anduin.net>2020-01-01 14:39:02 +0100
commitaf92ce5991aee0f6bd9ae6f84f9c668d5407ba09 (patch)
tree858bc7d691860bf6ee6d5cd3af4f40f8b8045ca8 /src
parent8b4b4ccd068d8677fd99ec2e366582102fd4177c (diff)
downloadrust-zotapi-af92ce5991aee0f6bd9ae6f84f9c668d5407ba09.tar.gz
rust-zotapi-af92ce5991aee0f6bd9ae6f84f9c668d5407ba09.tar.bz2
rust-zotapi-af92ce5991aee0f6bd9ae6f84f9c668d5407ba09.zip
Update deps.
Diffstat (limited to 'src')
-rw-r--r--src/client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.rs b/src/client.rs
index 95643a1..507f845 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -41,6 +41,7 @@ pub const ZOTAPI_GROUP_MEMBERS_PATH : &str = "/api/z/1.0/group_members";
pub const ZOTAPI_ITEM_UPDATE_PATH : &str = "/api/z/1.0/item/update";
pub const ZOTAPI_XCHAN_PATH : &str = "/api/z/1.0/xchan";
+#[derive(Debug)]
pub struct Client {
inner: reqwest::Client,
base_url: String,
@@ -144,7 +145,6 @@ impl Client {
let res = self.inner.post(&url)
.basic_auth(self.user.clone(), Some(self.pw.clone()))
- .header(CONTENT_TYPE, "multipart/form-data")
.multipart(form)
.send()?;