mirror of
https://github.com/actix/actix-web.git
synced 2024-12-30 12:00:38 +00:00
handle empty te
This commit is contained in:
parent
33260c7b35
commit
989cd61236
1 changed files with 3 additions and 1 deletions
|
@ -644,7 +644,9 @@ impl TransferEncoding {
|
||||||
impl io::Write for TransferEncoding {
|
impl io::Write for TransferEncoding {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
|
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
|
||||||
self.encode(buf)?;
|
if self.buf.is_some() {
|
||||||
|
self.encode(buf)?;
|
||||||
|
}
|
||||||
Ok(buf.len())
|
Ok(buf.len())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue