Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-unknown-linux-gnu"]

[features]
default = ["webpki-roots", "charset", "system-proxy"]
default = ["webpki-roots"]

# Enable support for decoding text.
charset = ["dep:encoding_rs", "dep:mime"]
Expand Down
7 changes: 5 additions & 2 deletions src/client/multipart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,10 @@ mod tests {
))))),
)
.part("key1", Part::text("value1"))
.part("key2", Part::text("value2").mime(mime::IMAGE_BMP))
.part(
"key2",
Part::text("value2").mime(mime_guess::mime::IMAGE_BMP),
)
.part(
"reader2",
Part::stream(Body::stream(stream::once(future::ready::<
Expand Down Expand Up @@ -676,7 +679,7 @@ mod tests {

#[test]
fn stream_to_end_with_header() {
let mut part = Part::text("value2").mime(mime::IMAGE_BMP);
let mut part = Part::text("value2").mime(mime_guess::mime::IMAGE_BMP);
let mut headers = HeaderMap::new();
headers.insert("Hdr3", "/a/b/c".parse().unwrap());
part = part.headers(headers);
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,14 @@
//! - **deflate**: Provides response body deflate decompression.
//! - **json**: Provides serialization and deserialization for JSON bodies.
//! - **multipart**: Provides functionality for multipart forms.
//! - **charset** *(enabled by default)*: Improved support for decoding text.
//! - **charset**: Improved support for decoding text.
//! - **stream**: Adds support for `futures::Stream`.
//! - **socks**: Provides SOCKS5 and SOCKS4 proxy support.
//! - **ws**: Provides websocket support.
//! - **hickory-dns**: Enables a hickory-dns async resolver instead of default threadpool using
//! `getaddrinfo`.
//! - **webpki-roots** *(enabled by default)*: Use the webpki-roots crate for root certificates.
//! - **system-proxy** *(enabled by default)*: Enable system proxy support.
//! - **system-proxy**: Enable system proxy support.
//! - **tracing**: Enable tracing logging support.
//!
//! [client]: ./struct.Client.html
Expand Down
Loading