Skip to content

Commit

Permalink
chore: flush tempfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tejmagar committed Jun 28, 2024
1 parent 5b3cbaa commit 88f46ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/parser/multipart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ impl MultipartParser {
}
}

let _ = temp_file.flush().await;

scan_buffer =
(&scan_buffer[to_copy_position + value_terminator_bytes.len()..]).to_vec();
return if &scan_buffer[..FORM_PART_END.len()] == FORM_PART_END {
Expand Down

0 comments on commit 88f46ec

Please sign in to comment.