Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Jul 13, 2024
1 parent 2ed1476 commit ab17354
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 39 deletions.
67 changes: 33 additions & 34 deletions Cargo.lock

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

13 changes: 11 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,16 @@ panic = "abort"
codegen-units = 2

[dependencies]
sqlx = { package = "sqlx-oldapi", version = "0.6.23", features = ["any", "runtime-actix-rustls", "sqlite", "postgres", "mysql", "mssql", "chrono", "json" ] }
sqlx = { package = "sqlx-oldapi", version = "0.6.23", features = [
"any",
"runtime-actix-rustls",
"sqlite",
"postgres",
"mysql",
"mssql",
"chrono",
"json",
] }
chrono = "0.4.23"
actix-web = { version = "4", features = ["rustls-0_22", "cookies"] }
percent-encoding = "2.2.0"
Expand All @@ -44,7 +53,7 @@ password-hash = "0.5.0"
argon2 = "0.5.0"
actix-web-httpauth = "0.8.0"
rand = "0.8.5"
actix-multipart = "0.6.1"
actix-multipart = "0.7.2"
base64 = "0.22"
rustls-acme = "0.9.2"
dotenvy = "0.15.7"
Expand Down
8 changes: 5 additions & 3 deletions src/webserver/http_request_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,12 @@ async fn extract_multipart_post_data(

while let Some(part) = multipart.next().await {
let field = part.map_err(|e| anyhow!("unable to read form field: {e}"))?;
// test if field is a file
let filename = field.content_disposition().get_filename();
let field_name = field
let content_disposition = field
.content_disposition()
.ok_or_else(|| anyhow!("missing Content-Disposition in form field"))?;
// test if field is a file
let filename = content_disposition.get_filename();
let field_name = content_disposition
.get_name()
.unwrap_or_default()
.to_string();
Expand Down

0 comments on commit ab17354

Please sign in to comment.