mirror of https://github.com/fafhrd91/actix-web
Update actix-http/src/lib.rs
Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
parent
0def1aec27
commit
12de0e96fc
|
@ -107,7 +107,7 @@ impl OnConnectData {
|
|||
|
||||
// merge self to given request's head extension.
|
||||
#[inline]
|
||||
pub(crate) fn merge(&mut self, req: &mut Request) {
|
||||
pub(crate) fn merge_into(&mut self, req: &mut Request) {
|
||||
if let Some(ref mut ext) = self.0 {
|
||||
req.head.extensions.get_mut().drain_from(ext);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue