mirror of
https://github.com/fafhrd91/actix-web
synced 2025-02-19 19:04:21 +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…
x
Reference in New Issue
Block a user