GODT-213: Use application/octet-stream for encrypted parts

This commit is contained in:
James Houlahan
2021-04-13 10:12:02 +02:00
parent f5aba717b2
commit 6c8e5f7cd3
3 changed files with 14 additions and 42 deletions

View File

@ -1042,7 +1042,7 @@ func TestBuildCustomMessagePlainWithAttachment(t *testing.T) {
expectTransferEncoding(isMissing())
section(t, res, 2).
expectContentType(is(`application/pgp-encrypted`)).
expectContentType(is(`application/octet-stream`)).
expectBody(contains(`This attachment could not be decrypted`)).
expectBody(decryptsTo(foreignKR, `attachment`)).
expectContentTypeParam(`name`, is(`file.png.pgp`)).
@ -1084,7 +1084,7 @@ func TestBuildCustomMessageHTMLWithAttachment(t *testing.T) {
expectTransferEncoding(isMissing())
section(t, res, 2).
expectContentType(is(`application/pgp-encrypted`)).
expectContentType(is(`application/octet-stream`)).
expectBody(contains(`This attachment could not be decrypted`)).
expectBody(decryptsTo(foreignKR, `attachment`)).
expectContentTypeParam(`name`, is(`file.png.pgp`)).
@ -1168,7 +1168,7 @@ func TestBuildCustomMessageOnlyAttachmentIsUndecryptable(t *testing.T) {
expectTransferEncoding(is(`quoted-printable`))
section(t, res, 2).
expectContentType(is(`application/pgp-encrypted`)).
expectContentType(is(`application/octet-stream`)).
expectBody(contains(`This attachment could not be decrypted`)).
expectBody(decryptsTo(foreignKR, `attachment`)).
expectContentTypeParam(`name`, is(`file.png.pgp`)).