Skip to content

Commit a306764

Browse files
committed
opt
1 parent cdc01e3 commit a306764

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

attachment.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ type attachment struct {
1313
contentType string
1414
header textproto.MIMEHeader
1515
content *bytes.Buffer
16-
related bool
1716
}
1817

1918
func (at *attachment) setDefaultHeader() {
@@ -29,11 +28,7 @@ func (at *attachment) setDefaultHeader() {
2928
at.header.Set("Content-Type", ct)
3029

3130
// set disposition
32-
disposition := fmt.Sprintf("attachment; filename='%s'", at.filename)
33-
if at.related {
34-
disposition = "inline"
35-
}
36-
at.header.Set("Content-Disposition", disposition)
31+
at.header.Set("Content-Disposition", fmt.Sprintf("attachment; filename='%s'", at.filename))
3732

3833
// set content-id
3934
id, _ := generateContentID(at.filename)

0 commit comments

Comments
 (0)