Skip to content

Commit

Permalink
Typo fixed in missing max-age directive (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
WKobes authored Feb 4, 2025
1 parent aae6690 commit 2471e0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion header.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func preloadableHeaderMaxAge(hstsHeader HSTSHeader, policy preloadlist.PolicyTyp
case hstsHeader.MaxAge == nil:
issues = issues.addErrorf(
"header.preloadable.max_age.missing",
"No max-age directice",
"No max-age directive",
"Header requirement error: Header must contain a valid `max-age` directive.")

case hstsHeader.MaxAge.Seconds < uint64(maxAge):
Expand Down
2 changes: 1 addition & 1 deletion response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var responseTests = []struct {
Errors: []Issue{
{Code: "header.preloadable.include_sub_domains.missing", Summary: "No includeSubDomains directive", Message: "The header must contain the `includeSubDomains` directive."},
{Code: "header.preloadable.preload.missing", Summary: "No preload directive", Message: "The header must contain the `preload` directive."},
{Code: "header.preloadable.max_age.missing", Summary: "No max-age directice", Message: "Header requirement error: Header must contain a valid `max-age` directive."},
{Code: "header.preloadable.max_age.missing", Summary: "No max-age directive", Message: "Header requirement error: Header must contain a valid `max-age` directive."},
},
Warnings: []Issue{{Code: "header.parse.empty", Summary: "Empty Header", Message: "The HSTS header is empty."}},
},
Expand Down

0 comments on commit 2471e0a

Please sign in to comment.