From ce6d237cc146bb7544cb586a7046d3d00e50eda4 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 20 Mar 2018 15:53:39 -0700 Subject: [PATCH] prepare 0.4.10 release --- CHANGES.md | 2 +- src/server/h1.rs | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index d95ea779..67798f4d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/src/server/h1.rs b/src/server/h1.rs index 86e0b73a..51f8f322 100644 --- a/src/server/h1.rs +++ b/src/server/h1.rs @@ -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 {