Skip to content

Commit

Permalink
Fix header processing in tx send.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jul 9, 2022
1 parent 68da86a commit 3f5a50f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ func handleSendTxMessage(c echo.Context) error {

// Optional headers.
if len(m.Headers) != 0 {
msg.Headers = make(textproto.MIMEHeader)
for _, set := range msg.Campaign.Headers {
msg.Headers = make(textproto.MIMEHeader, len(m.Headers))
for _, set := range m.Headers {
for hdr, val := range set {
msg.Headers.Add(hdr, val)
}
Expand Down

0 comments on commit 3f5a50f

Please sign in to comment.