1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-01 16:55:08 +02:00

remove buffer capacity for payload

This commit is contained in:
Nikolay Kim
2019-04-07 10:40:45 -07:00
parent 219baf3323
commit 3c650ca194
3 changed files with 5 additions and 13 deletions

View File

@ -3,6 +3,7 @@ use std::collections::VecDeque;
use std::rc::Rc;
use bitflags::bitflags;
use copyless::BoxHelper;
use crate::extensions::Extensions;
use crate::header::HeaderMap;
@ -417,7 +418,7 @@ impl BoxedResponsePool {
BoxedResponseHead { head: Some(head) }
} else {
BoxedResponseHead {
head: Some(Box::new(ResponseHead::default())),
head: Some(Box::alloc().init(ResponseHead::default())),
}
}
}