hsts: when a dupe host adds subdomains, use that

Otherwise a weaker earlier entry is allowed to override a later more
restrictive one.

Add test 1638 to verify.

Closes #21108
This commit is contained in:
Daniel Stenberg 2026-03-26 17:28:34 +01:00
parent 5172ba5475
commit e1fdbdd16f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 105 additions and 3 deletions

View file

@ -636,7 +636,7 @@ parameter is the not negative integer number of seconds for the delay. This
'delay' attribute is intended for specific test cases, and normally not
needed.
### `<file name="%LOGDIR/filename" [nonewline="yes"][crlf="yes"]>`
### `<file name="%LOGDIR/filename" [options]>`
This creates the named file with this content before the test case is run,
which is useful if the test case needs a file to act on.
@ -646,6 +646,9 @@ off.
`crlf=yes` forces the newlines to become CRLF even if not written so in the
test.
`mode="text"` normalizes the line endings to make them compare as text on all
platforms.
### `<file1>`
1 to 4 can be appended to 'file' to create more files.