mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 23:51:06 +01:00
add changelog entry
This commit is contained in:
parent
805dbea8e7
commit
2adf8a3a48
@ -1,5 +1,10 @@
|
||||
# Changes
|
||||
|
||||
## 0.5.5 (2018-04-xx)
|
||||
|
||||
* Fix panic when Websocket is closed with no error code #191
|
||||
|
||||
|
||||
## 0.5.4 (2018-04-19)
|
||||
|
||||
* Add identity service middleware
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "actix-web"
|
||||
version = "0.5.4"
|
||||
version = "0.5.5"
|
||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||
description = "Actix web is a simple, pragmatic and extremely fast web framework for Rust."
|
||||
readme = "README.md"
|
||||
|
@ -310,10 +310,11 @@ where
|
||||
}
|
||||
OpCode::Close => {
|
||||
self.closed = true;
|
||||
let close_code = if payload.len() >= 2{
|
||||
let raw_code = NetworkEndian::read_uint(payload.as_ref(), 2) as u16;
|
||||
let close_code = if payload.len() >= 2 {
|
||||
let raw_code =
|
||||
NetworkEndian::read_uint(payload.as_ref(), 2) as u16;
|
||||
CloseCode::from(raw_code)
|
||||
}else{
|
||||
} else {
|
||||
CloseCode::Status
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user