diff --git a/CHANGES.md b/CHANGES.md index d95ea779981..67798f4d18c 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 86e0b73a2e7..51f8f322732 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 {