1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-28 01:32:57 +01: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

@ -311,7 +311,8 @@ 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 raw_code =
NetworkEndian::read_uint(payload.as_ref(), 2) as u16;
CloseCode::from(raw_code)
} else {
CloseCode::Status