mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 12:35:28 +00:00
normalize hostnames before comparing
This commit is contained in:
parent
01597a1d2c
commit
675309f4aa
2 changed files with 18 additions and 4 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue