Fix warnings.

This commit is contained in:
Josh Matthews 2022-01-03 13:05:19 -05:00
parent e87bbb093a
commit 08ff81b09a
4 changed files with 5 additions and 7 deletions

View file

@ -523,7 +523,7 @@ async fn obtain_response(
.replace("}", "%7D");
let request = if let Some(chunk_requester) = body {
let (mut sink, stream) = if source_is_null {
let (sink, stream) = if source_is_null {
// Step 4.2 of https://fetch.spec.whatwg.org/#concept-http-network-fetch
// TODO: this should not be set for HTTP/2(currently not supported?).
headers.insert(TRANSFER_ENCODING, HeaderValue::from_static("chunked"));