normalize hostnames before comparing

This commit is contained in:
Johann150 2021-11-23 09:56:28 +01:00
parent 01597a1d2c
commit 675309f4aa
No known key found for this signature in database
GPG key ID: 9EE6577A2A06F8F1
2 changed files with 18 additions and 4 deletions

View file

@ -509,6 +509,8 @@ mod vhosts {
#[test]
/// - simple vhosts are enabled when multiple hostnames are supplied
/// - the vhosts access the correct files
/// - the hostname comparison is case insensitive
/// - the hostname is converted to lower case to access certificates
fn example_com() {
let page = get(
&[
@ -520,7 +522,7 @@ mod vhosts {
"example.org",
],
addr(1984),
"gemini://example.com/",
"gemini://Example.com/",
)
.expect("could not get page");