some tweaks
This commit is contained in:
parent
5e08622a67
commit
e151e6b3fd
@ -26,6 +26,7 @@ func (ew *encryptWriter) open() error {
|
||||
// Create control information
|
||||
h := make(textproto.MIMEHeader)
|
||||
h.Add("Content-Type", "application/pgp-encrypted")
|
||||
h.Add("Content-Description", "PGP/MIME version identification")
|
||||
w, err := ew.multipart.CreatePart(h)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -36,8 +37,9 @@ func (ew *encryptWriter) open() error {
|
||||
|
||||
// Create body part
|
||||
h = make(textproto.MIMEHeader)
|
||||
h.Add("Content-Type", "application/octet-stream")
|
||||
h.Add("Content-Disposition", "inline")
|
||||
h.Add("Content-Type", "application/octet-stream; name=\"encrypted.asc\"")
|
||||
h.Add("Content-Description", "OpenPGP encrypted message")
|
||||
h.Add("Content-Disposition", "inline; filename=\"encrypted.asc\"")
|
||||
w, err = ew.multipart.CreatePart(h)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user