Merge pull request #3243 from danilp-id/master

fix http stream not being closed fully
This commit is contained in:
Mark Thom
2026-03-19 23:36:58 -07:00
committed by GitHub

View File

@@ -328,10 +328,7 @@ impl Write for HttpWriteStream {
}
#[cfg(feature = "http")]
impl HttpWriteStream {
// TODO why is this suddenly dead code and should it be used somewhere?
// Should this be impl Drop for HttpWriteStream?
#[allow(dead_code)]
impl Drop for HttpWriteStream {
fn drop(&mut self) {
let headers = unsafe { std::mem::ManuallyDrop::take(&mut self.headers) };
let buffer = unsafe { std::mem::ManuallyDrop::take(&mut self.buffer) };