Fix documentation of http1_title_case_headers() (#1294)

Case is not preserved either way, so the old text was misleading.
This commit is contained in:
Jan Verbeek
2021-06-24 23:30:53 +02:00
committed by GitHub
parent b9cf2db697
commit d9308f1b26
2 changed files with 2 additions and 2 deletions

View File

@@ -731,7 +731,7 @@ impl ClientBuilder {
self
}
/// Enable case sensitive headers.
/// Send headers as title case instead of lowercase.
pub fn http1_title_case_headers(mut self) -> ClientBuilder {
self.config.http1_title_case_headers = true;
self

View File

@@ -399,7 +399,7 @@ impl ClientBuilder {
self.with_inner(move |inner| inner.pool_max_idle_per_host(max))
}
/// Enable case sensitive headers.
/// Send headers as title case instead of lowercase.
pub fn http1_title_case_headers(self) -> ClientBuilder {
self.with_inner(|inner| inner.http1_title_case_headers())
}