forked from Disroot/gpg-lacre
Don't break Content-Type header with LF - part 2
This commit is contained in:
parent
06abbc0edd
commit
65d2a77486
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ def encrypt_all_payloads_mime( message, gpg_to_cmdline ):
|
|||
|
||||
# This also modifies the boundary in the body of the message, ie it gets parsed.
|
||||
if 'Content-Type' in message:
|
||||
message.replace_header('Content-Type', "multipart/encrypted; protocol=\"application/pgp-encrypted\";\nboundary=\"%s\"\n" % boundary)
|
||||
message.replace_header('Content-Type', "multipart/encrypted; protocol=\"application/pgp-encrypted\"; boundary=\"%s\"\n" % boundary)
|
||||
else:
|
||||
message['Content-Type'] = "multipart/encrypted; protocol=\"application/pgp-encrypted\"; boundary=\"%s\"\n" % boundary
|
||||
|
||||
|
|
Loading…
Reference in a new issue