From 1c8c860e7d1c95607359417f11e16e3a3719fdff Mon Sep 17 00:00:00 2001 From: Vinicius Buzzacaro Date: Mon, 10 Nov 2025 21:41:08 -0300 Subject: [PATCH] Minor tweaks to match new signature --- actix-web/src/types/form.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-web/src/types/form.rs b/actix-web/src/types/form.rs index d6381b990..91ae702c8 100644 --- a/actix-web/src/types/form.rs +++ b/actix-web/src/types/form.rs @@ -289,7 +289,7 @@ impl UrlEncoded { /// Create a new future to decode a URL encoded request payload. pub fn new(req: &HttpRequest, payload: &mut Payload) -> Self { // check content type - if req.content_type().to_lowercase() != "application/x-www-form-urlencoded" { + if req.content_type() != Some("application/x-www-form-urlencoded") { return Self::err(UrlencodedError::ContentType); } let encoding = match req.encoding() {