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,8 +47,10 @@ impl BigBytes {
|
||||
self.frozen.push_back(current);
|
||||
}
|
||||
|
||||
self.frozen_len += bytes.len();
|
||||
self.frozen.push_back(bytes);
|
||||
if !bytes.is_empty() {
|
||||
self.frozen_len += bytes.len();
|
||||
self.frozen.push_back(bytes);
|
||||
}
|
||||
}
|
||||
|
||||
// Returns a slice of the frontmost buffer
|
||||
|
Loading…
Reference in New Issue
Block a user