Skip to content

Commit

Permalink
Fix boundary parsing actix#876
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Jun 2, 2019
1 parent 15cdc68 commit 24180f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions actix-multipart/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## [0.1.2] - 2019-06-02

* Fix boundary parsing #876

## [0.1.1] - 2019-05-25

* Fix disconnect handling #834
Expand Down
4 changes: 2 additions & 2 deletions actix-multipart/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-multipart"
version = "0.1.1"
version = "0.1.2"
authors = ["Nikolay Kim <[email protected]>"]
description = "Multipart support for actix web framework."
readme = "README.md"
Expand Down Expand Up @@ -31,4 +31,4 @@ twoway = "0.2"

[dev-dependencies]
actix-rt = "0.2.2"
actix-http = "0.2.0"
actix-http = "0.2.2"
4 changes: 1 addition & 3 deletions actix-multipart/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,6 @@ impl InnerField {
if &payload.buf[b_len..b_size] == boundary.as_bytes() {
// found boundary
return Ok(Async::Ready(None));
} else {
pos = b_size;
}
}
}
Expand Down Expand Up @@ -576,7 +574,7 @@ impl InnerField {
}
}
} else {
return Ok(Async::Ready(Some(payload.buf.take().freeze())));
Ok(Async::Ready(Some(payload.buf.take().freeze())))
};
}
}
Expand Down

0 comments on commit 24180f9

Please sign in to comment.