Merge pull request #3243 from danilp-id/master
fix http stream not being closed fully
This commit is contained in:
@@ -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) };
|
||||
|
||||
Reference in New Issue
Block a user