Skip to content

Commit

Permalink
Remove charset from octet-stream Content-Type on FreeBSD
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wneessen committed Nov 26, 2024
1 parent f61da9c commit 06bee90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msgwriter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 06bee90

Please sign in to comment.