Skip to content

Commit

Permalink
v0.9.1, fix multipart
Browse files Browse the repository at this point in the history
  • Loading branch information
biluohc committed Feb 13, 2020
1 parent 55f196e commit 3596a40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fht2p"
version = "0.9.0" # alpha<alpha.1<beta<rc
version = "0.9.1" # alpha<alpha.1<beta<rc
authors = ["Wspsxing <biluohc@qq.com>"]
description = "A HTTP Server for Static File written with Rust"
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/file_upload/multipart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ impl<'a> Part<'a> {
let res = match parse_part_eof(chunk.as_ref(), &self.multi.boundary) {
None => Some(Ok(chunk)),
Some(None) => {
if self.complete {
if self.multi.eof {
return Some(Err(format_err!("unexpected eof")));
} else {
// todo: it maybe slow ?
Expand Down

0 comments on commit 3596a40

Please sign in to comment.