Skip to content

Commit 5ae63d7

Browse files
yaronfcursoragent
andcommitted
fix: silence SA1008 on lowercase date header lookup
parsedMessage headers are intentionally lowercased; same nolint pattern as signature header lookups. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent aee5be7 commit 5ae63d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

signatures.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ func applyPolicyCreated(psi *psiSignature, message parsedMessage, config VerifyC
913913
}
914914

915915
if config.dateWithin != 0 {
916-
dateHdr, ok := message.headers["date"]
916+
dateHdr, ok := message.headers["date"] //nolint:staticcheck // SA1008: lowercase map keys by design
917917
if ok {
918918
if len(dateHdr) > 1 {
919919
return fmt.Errorf("multiple Date headers")

0 commit comments

Comments
 (0)