Skip to content

Commit 022b3b1

Browse files
authored
MIME headers: Explicitly set type on multipart envelope (#23)
1 parent 84e723a commit 022b3b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/peppol_py/as4_sender.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
def get_headers_and_body_for_posting_as4_document(document_content, document_xml, utc_timestamp, document_type, process_type, sender_id, receiver_id, to_party_id, xmlsec_path, keyfile, keyfile_password, sender_cert, receiver_cert, service_provider_id):
1414
message, gzip, attachment_id = make_as4_message_to_post(utc_timestamp, document_type, process_type, sender_id, receiver_id, to_party_id, document_content, xmlsec_path, keyfile, keyfile_password, sender_cert, receiver_cert, service_provider_id)
1515

16-
related = MIMEMultipart('related')
16+
related = MIMEMultipart('related', type='application/soap+xml')
1717

1818
mt = MIMEApplication(message, 'soap+xml', email.encoders.encode_7or8bit)
1919
mt.add_header("Content-ID", "<root.message@cxf.apache.org>")

0 commit comments

Comments
 (0)