about summary refs log tree commit diff stats
path: root/widgets/compose.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/compose.go')
-rw-r--r--widgets/compose.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index 03b6586..a0a5259 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -409,7 +409,7 @@ func writeAttachment(path string, writer *mail.Writer) error {
 	// determine the MIME type
 	// http.DetectContentType only cares about the first 512 bytes
 	head, err := reader.Peek(512)
-	if err != nil {
+	if err != nil && err != io.EOF {
 		return errors.Wrap(err, "Peek")
 	}