mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-27 07:55:08 +01:00
Remove charset from octet-stream Content-Type on FreeBSD
The charset parameter in the Content-Type header for octet-stream files on FreeBSD was removed. This aligns the behavior with the expected MIME type format for such files. Other platforms remain unchanged.
This commit is contained in:
parent
f61da9cc2e
commit
06bee90a1e
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ func TestMsgWriter_addFiles(t *testing.T) {
|
|||
cdExpect := fmt.Sprintf(`Content-Disposition: attachment; filename="%s"`, tt.expect)
|
||||
switch runtime.GOOS {
|
||||
case "freebsd":
|
||||
ctExpect = fmt.Sprintf(`Content-Type: application/octet-stream; charset=utf-8; name="%s"`, tt.expect)
|
||||
ctExpect = fmt.Sprintf(`Content-Type: application/octet-stream; name="%s"`, tt.expect)
|
||||
default:
|
||||
ctExpect = fmt.Sprintf(`Content-Type: text/plain; charset=utf-8; name="%s"`, tt.expect)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue