Archived
1
0

Merge pull request #174 from cathugger/master

srnd: message/rfc822 doesn't have charset parameter
This commit is contained in:
Jeff 2019-01-26 11:13:23 -05:00 committed by GitHub
commit e230c75c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,7 @@ func signArticle(nntp NNTPMessage, seed []byte) (signed *nntpArticle, err error)
if k == "X-PubKey-Ed25519" || k == "X-Signature-Ed25519-SHA512" || k == "X-Signature-Ed25519-BLAKE2B" {
// don't set signature or pubkey header
} else if k == "Content-Type" {
signed.headers.Set(k, "message/rfc822; charset=UTF-8")
signed.headers.Set(k, "message/rfc822")
} else {
v := h[k][0]
signed.headers.Set(k, v)