Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/http/server/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ impl Request {
// Read body if its length is specified
match request.headers.content_length {
Some(length) => {
match buffer.read_bytes(length) {
match buffer.read_exact(length) {
Ok(body) => match str::from_utf8(body) {
Some(body_str) => request.body = body_str.to_owned(),
None => return (request, Err(status::BadRequest))
Expand Down