1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
Description: due to missing mime config on the buildd, some test results
differ from the results on a desktop computer
Author: Thorsten Alteholz <debian@alteholz.de>
Index: golang-gopkg-mail.v2/message_test.go
===================================================================
--- golang-gopkg-mail.v2.orig/message_test.go 2019-02-21 12:59:35.849631918 +0100
+++ golang-gopkg-mail.v2/message_test.go 2021-03-10 19:43:38.651776096 +0100
@@ -283,7 +283,7 @@
to: []string{"to@example.com"},
content: "From: from@example.com\r\n" +
"To: to@example.com\r\n" +
- "Content-Type: text/plain; charset=utf-8; name=\"file.txt\"\r\n" +
+ "Content-Type: application/octet-stream; name=\"file.txt\"\r\n" +
"Content-Disposition: attachment; filename=\"file.txt\"\r\n" +
"Content-Transfer-Encoding: base64\r\n" +
"\r\n" +
@@ -402,7 +402,7 @@
"\r\n" +
base64.StdEncoding.EncodeToString([]byte("Content of test.pdf")) + "\r\n" +
"--_BOUNDARY_1_\r\n" +
- "Content-Type: application/zip; name=\"test.zip\"\r\n" +
+ "Content-Type: application/octet-stream; name=\"test.zip\"\r\n" +
"Content-Disposition: attachment; filename=\"test.zip\"\r\n" +
"Content-Transfer-Encoding: base64\r\n" +
"\r\n" +
@@ -441,7 +441,7 @@
"\r\n" +
base64.StdEncoding.EncodeToString([]byte("Content of test.pdf")) + "\r\n" +
"--_BOUNDARY_1_\r\n" +
- "Content-Type: application/zip; name=\"test.zip\"\r\n" +
+ "Content-Type: application/octet-stream; name=\"test.zip\"\r\n" +
"Content-Disposition: attachment; filename=\"test.zip\"\r\n" +
"Content-Transfer-Encoding: base64\r\n" +
"\r\n" +
@@ -466,7 +466,7 @@
to: []string{"to@example.com"},
content: "From: from@example.com\r\n" +
"To: to@example.com\r\n" +
- "Content-Type: text/plain; charset=utf-8; name=\"file.txt\"\r\n" +
+ "Content-Type: application/octet-stream; name=\"file.txt\"\r\n" +
"Content-Transfer-Encoding: base64\r\n" +
"Content-Disposition: inline; filename=\"file.txt\"\r\n" +
"Content-ID: <file.txt>\r\n" +
|