Merge branch 'master' of github.com:pyros2097/actix-web

This commit is contained in:
pyros2097 2018-02-26 21:28:58 +05:30
commit 331f66c490
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ fn main() {
```
Simple websocket echo server example is available in
[examples directory](https://github.com/actix/actix-web/blob/master/examples/websocket.rs).
[examples directory](https://github.com/actix/actix-web/blob/master/examples/websocket).
Example chat server with ability to chat over websocket connection or tcp connection
is available in [websocket-chat directory](https://github.com/actix/actix-web/tree/master/examples/websocket-chat/)

View File

@ -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()};