From a992de888e89d7ee623b060562f2b78f179bbcc7 Mon Sep 17 00:00:00 2001 From: Vinicius Buzzacaro Date: Mon, 10 Nov 2025 21:40:42 -0300 Subject: [PATCH] Updated the tests to match the new signature --- actix-web/src/test/test_utils.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/actix-web/src/test/test_utils.rs b/actix-web/src/test/test_utils.rs index 4540d8a6b..5c8c4e144 100644 --- a/actix-web/src/test/test_utils.rs +++ b/actix-web/src/test/test_utils.rs @@ -505,7 +505,10 @@ mod tests { .set_form(&payload) .to_request(); - assert_eq!(req.content_type(), "application/x-www-form-urlencoded"); + assert_eq!( + req.content_type().unwrap(), + "application/x-www-form-urlencoded" + ); let result: Person = call_and_read_body_json(&app, req).await; assert_eq!(&result.id, "12345"); @@ -549,7 +552,7 @@ mod tests { .set_json(&payload) .to_request(); - assert_eq!(req.content_type(), "application/json"); + assert_eq!(req.content_type(), Some("application/json")); let result: Person = call_and_read_body_json(&app, req).await; assert_eq!(&result.id, "12345");