Updated STS parsing to ignore preload tokens that include a value while preserving duplicate-preload rejection for valid tokens.

This commit is contained in:
2026-02-04 11:58:13 -07:00
parent 78a00b5b88
commit eae5a209d3

View File

@@ -377,7 +377,12 @@ sts_parse_value (const char *value, guint16 *port, guint64 *duration, gboolean *
}
else if (!g_ascii_strcasecmp (key, "preload"))
{
if (*has_preload || val)
if (val)
{
continue;
}
if (*has_preload)
{
g_strfreev (tokens);
return FALSE;