Skip to content

Commit

Permalink
Merge pull request #115 from jchia/fix-edit
Browse files Browse the repository at this point in the history
Follow-up to 7522d41
  • Loading branch information
szabodanika committed Mar 26, 2023
2 parents b27ac08 + 0403526 commit a2c8eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoints/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub async fn post_edit(
while let Some(mut field) = payload.try_next().await? {
if field.name() == "content" {
while let Some(chunk) = field.try_next().await? {
new_content = std::str::from_utf8(&chunk).unwrap().to_string();
new_content.push_str(std::str::from_utf8(&chunk).unwrap().to_string().as_str());
}
}
}
Expand Down

0 comments on commit a2c8eac

Please sign in to comment.