fix(http): skip zero length chunks when encoding
This commit is contained in:
@@ -63,7 +63,7 @@ impl Encoder {
|
||||
};
|
||||
|
||||
if n == 0 {
|
||||
return Err(io::Error::new(io::ErrorKind::WouldBlock, "would block"));
|
||||
return Err(io::Error::new(io::ErrorKind::WriteZero, "write zero"));
|
||||
}
|
||||
|
||||
*remaining -= n as u64;
|
||||
|
||||
Reference in New Issue
Block a user