Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Ciber94 committed Sep 11, 2024
1 parent d1379d4 commit 3ce4b85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ fn read_request(stream: &mut TcpStream) -> std::io::Result<Request<Body>> {
buf.clear();
}

Ok(builder.build(buf.into()))
// Read the body
let body = buf.into();
Ok(builder.build(body))
}

fn read_request_line(buf: &str) -> std::io::Result<(Method, Uri, Version)> {
Expand Down

0 comments on commit 3ce4b85

Please sign in to comment.