mirror of
https://github.com/actix/actix-web.git
synced 2025-01-02 05:18:44 +00:00
fix big ws frames
This commit is contained in:
parent
aff43cc8b8
commit
25aabfb3e2
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ impl Frame {
|
|||
unsafe{buf.advance_mut(2)};
|
||||
buf
|
||||
} else {
|
||||
let mut buf = BytesMut::with_capacity(p_len + 8);
|
||||
let mut buf = BytesMut::with_capacity(p_len + 10);
|
||||
buf.put_slice(&[one, two | 127]);
|
||||
{
|
||||
let buf_mut = unsafe{buf.bytes_mut()};
|
||||
|
|
Loading…
Reference in a new issue