mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 06:39:22 +02:00
Clean up response extensions in response pool #817
This commit is contained in:
@ -449,6 +449,7 @@ impl BoxedResponsePool {
|
||||
fn release(&self, msg: Box<ResponseHead>) {
|
||||
let v = &mut self.0.borrow_mut();
|
||||
if v.len() < 128 {
|
||||
msg.extensions.borrow_mut().clear();
|
||||
v.push(msg);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user