Closed lucaspimentel closed 6 years ago
The following PostmarkMessage constructor overload ignores the headers argument and instead always create a new HeaderCollection:
PostmarkMessage
headers
HeaderCollection
PostmarkMessage(string from, string to, string subject, string textBody, string htmlBody, HeaderCollection headers = null)
Line 33 of PostmarkMessage.cs is currently
PostmarkMessage.cs
Headers = headers = new HeaderCollection();
but should probably be
Headers = headers ?? new HeaderCollection();
I created pull request #54 to fix this issue.
Thanks! This will go out in the next release.
The following
PostmarkMessage
constructor overload ignores theheaders
argument and instead always create a newHeaderCollection
:Line 33 of
PostmarkMessage.cs
is currentlybut should probably be
I created pull request #54 to fix this issue.