1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-26 03:21:08 +00:00

prepare 0.4.10 release

This commit is contained in:
Nikolay Kim 2018-03-20 15:53:39 -07:00
parent 70caa2552b
commit ce6d237cc1
2 changed files with 1 additions and 7 deletions

View file

@ -1,6 +1,6 @@
# Changes
## 0.4.10 (2018-03-xx)
## 0.4.10 (2018-03-20)
* Use `Error` instead of `InternalError` for `error::ErrorXXXX` methods

View file

@ -504,13 +504,7 @@ impl Reader {
httparse::Status::Complete(len) => {
let method = Method::from_bytes(req.method.unwrap().as_bytes())
.map_err(|_| ParseError::Method)?;
//let path = req.path.unwrap();
//let path_start = path.as_ptr() as usize - bytes_ptr;
//let path_end = path_start + path.len();
//let path = (path_start, path_end);
let path = Uri::try_from(req.path.unwrap()).unwrap();
//.map_err(|_| ParseError::Uri)?;
let version = if req.version.unwrap() == 1 {
Version::HTTP_11
} else {