diff --git a/crates/librqbit/src/http_api.rs b/crates/librqbit/src/http_api.rs index 890086f..753e3ce 100644 --- a/crates/librqbit/src/http_api.rs +++ b/crates/librqbit/src/http_api.rs @@ -206,12 +206,12 @@ impl HttpApi { )) .context("bug")?, ); - } else { - output_headers.insert( - http::header::CONTENT_LENGTH, - HeaderValue::from_str(&format!("{}", stream.len())).context("bug")?, - ); } + } else { + output_headers.insert( + http::header::CONTENT_LENGTH, + HeaderValue::from_str(&format!("{}", stream.len())).context("bug")?, + ); } let s = tokio_util::io::ReaderStream::new(stream);