Skip to content

Commit

Permalink
prepare 0.4.10 release
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Mar 20, 2018
1 parent 70caa25 commit ce6d237
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 0 additions & 6 deletions src/server/h1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ce6d237

Please sign in to comment.