GODT-1141 Use attachment name from content type if not specified in content disposition

This commit is contained in:
Michal Horejsek
2021-04-19 08:21:18 +02:00
committed by Jakub Cuth
parent 4038752a9a
commit ee961ae4a8
4 changed files with 56 additions and 5 deletions

View File

@ -0,0 +1,14 @@
From: Sender <sender@pm.me>
To: Receiver <receiver@pm.me>
Content-Type: multipart/mixed; boundary=longrandomstring
--longrandomstring
body
--longrandomstring
Content-Type: application/octet-stream; name="attachment-contenttype.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="attachment-disposition.txt"
aWYgeW91IGFyZSByZWFkaW5nIHRoaXMsIGhpIQ==
--longrandomstring--

View File

@ -0,0 +1,14 @@
From: Sender <sender@pm.me>
To: Receiver <receiver@pm.me>
Content-Type: multipart/mixed; boundary=longrandomstring
--longrandomstring
body
--longrandomstring
Content-Type: application/octet-stream; name="attachment-contenttype.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment
aWYgeW91IGFyZSByZWFkaW5nIHRoaXMsIGhpIQ==
--longrandomstring--