1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-07-04 04:55:48 +00:00

add changelog entry

This commit is contained in:
Nikolay Kim 2018-04-21 07:56:11 -07:00
parent 805dbea8e7
commit 2adf8a3a48
3 changed files with 10 additions and 4 deletions

View file

@ -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

View file

@ -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"

View file

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