Skip to content

Commit

Permalink
Fix dkim verification issues and dmarc alignment default
Browse files Browse the repository at this point in the history
Change-Id: Id23c3a5f168214f441268e582d6448ab57defa12
  • Loading branch information
Hui Cao authored and emersion committed Nov 20, 2019
1 parent 2470a25 commit ccb2f9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dkim/canonical.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"strings"
)

var rxReduceWS = regexp.MustCompile(`[ \t\r\n]+`)

// Canonicalization is a canonicalization algorithm.
type Canonicalization string

Expand Down Expand Up @@ -105,7 +107,6 @@ func (c *relaxedCanonicalizer) CanonicalizeHeader(s string) string {

var v string
if len(kv) > 1 {
rxReduceWS := regexp.MustCompile(`[ \t\r\n]+`)
v = rxReduceWS.ReplaceAllString(kv[1], " ")
v = strings.TrimSpace(v)

Expand Down

0 comments on commit ccb2f9f

Please sign in to comment.