Skip to content

Commit ab17354

Browse files
committed
update dependencies
1 parent 2ed1476 commit ab17354

File tree

3 files changed

+49
-39
lines changed

3 files changed

+49
-39
lines changed

Cargo.lock

Lines changed: 33 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ panic = "abort"
1818
codegen-units = 2
1919

2020
[dependencies]
21-
sqlx = { package = "sqlx-oldapi", version = "0.6.23", features = ["any", "runtime-actix-rustls", "sqlite", "postgres", "mysql", "mssql", "chrono", "json" ] }
21+
sqlx = { package = "sqlx-oldapi", version = "0.6.23", features = [
22+
"any",
23+
"runtime-actix-rustls",
24+
"sqlite",
25+
"postgres",
26+
"mysql",
27+
"mssql",
28+
"chrono",
29+
"json",
30+
] }
2231
chrono = "0.4.23"
2332
actix-web = { version = "4", features = ["rustls-0_22", "cookies"] }
2433
percent-encoding = "2.2.0"
@@ -44,7 +53,7 @@ password-hash = "0.5.0"
4453
argon2 = "0.5.0"
4554
actix-web-httpauth = "0.8.0"
4655
rand = "0.8.5"
47-
actix-multipart = "0.6.1"
56+
actix-multipart = "0.7.2"
4857
base64 = "0.22"
4958
rustls-acme = "0.9.2"
5059
dotenvy = "0.15.7"

src/webserver/http_request_info.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,12 @@ async fn extract_multipart_post_data(
167167

168168
while let Some(part) = multipart.next().await {
169169
let field = part.map_err(|e| anyhow!("unable to read form field: {e}"))?;
170-
// test if field is a file
171-
let filename = field.content_disposition().get_filename();
172-
let field_name = field
170+
let content_disposition = field
173171
.content_disposition()
172+
.ok_or_else(|| anyhow!("missing Content-Disposition in form field"))?;
173+
// test if field is a file
174+
let filename = content_disposition.get_filename();
175+
let field_name = content_disposition
174176
.get_name()
175177
.unwrap_or_default()
176178
.to_string();

0 commit comments

Comments
 (0)