mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 08:22:59 +01:00
Don't add empty bytes to queue
This commit is contained in:
parent
96f5ebb549
commit
8eb1d10bae
@ -47,9 +47,11 @@ impl BigBytes {
|
|||||||
self.frozen.push_back(current);
|
self.frozen.push_back(current);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !bytes.is_empty() {
|
||||||
self.frozen_len += bytes.len();
|
self.frozen_len += bytes.len();
|
||||||
self.frozen.push_back(bytes);
|
self.frozen.push_back(bytes);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Returns a slice of the frontmost buffer
|
// Returns a slice of the frontmost buffer
|
||||||
pub(super) fn front_slice(&self) -> &[u8] {
|
pub(super) fn front_slice(&self) -> &[u8] {
|
||||||
|
Loading…
Reference in New Issue
Block a user