mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-29 12:06:01 +02:00
fix: adjust feature flags, wrong zip usage (#367)
This commit is contained in:
committed by
GitHub
parent
7ae7167fbe
commit
caf8456864
@@ -19,7 +19,7 @@ http = "0.2"
|
||||
reqwest = { version = "0.11", default-features = false, features = [ "json", "stream" ] }
|
||||
|
||||
[features]
|
||||
http-multipart = [ "reqwest/multipart" ]
|
||||
multipart = [ "reqwest/multipart" ]
|
||||
native-tls = [ "reqwest/native-tls" ]
|
||||
native-tls-vendored = [ "reqwest/native-tls-vendored" ]
|
||||
rustls-tls = [ "reqwest/rustls-tls" ]
|
||||
|
||||
@@ -103,7 +103,7 @@ class Body {
|
||||
* and the value is either a string or a file object.
|
||||
*
|
||||
* By default it sets the `application/x-www-form-urlencoded` Content-Type header,
|
||||
* but you can set it to `multipart/form-data` if the Cargo feature `http-multipart` is enabled.
|
||||
* but you can set it to `multipart/form-data` if the Cargo feature `multipart` is enabled.
|
||||
*
|
||||
* Note that a file path must be allowed in the `fs` allowlist scope.
|
||||
* @example
|
||||
|
||||
@@ -91,7 +91,7 @@ impl Client {
|
||||
headers: &mut Option<HeaderMap>,
|
||||
form_body: FormBody,
|
||||
) -> crate::Result<reqwest::RequestBuilder> {
|
||||
#[cfg(feature = "http-multipart")]
|
||||
#[cfg(feature = "multipart")]
|
||||
if matches!(
|
||||
headers
|
||||
.as_ref()
|
||||
|
||||
Reference in New Issue
Block a user