From 7d040061cb932f44f46a7f52c4f5404ee3b7c29b Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 26 Feb 2024 04:41:58 +0000 Subject: [PATCH] Force all names to lowercase ASCII as it is the canonical form --- src/rr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rr.rs b/src/rr.rs index 1755685..f7faef5 100644 --- a/src/rr.rs +++ b/src/rr.rs @@ -65,7 +65,7 @@ impl TryFrom for Name { if label.len() > 63 { return Err(()); } } - Ok(Name(s)) + Ok(Name(s.to_ascii_lowercase())) } } impl TryFrom<&str> for Name { -- 2.39.5