Repository navigation
Commit b452b8b
committed
mail: reset the content buffer before each part
When io.Copy from a part body failed, the loop continued without
clearing the shared buffer, so leftover bytes from the failed part were
carried into the next text part. Reset the buffer at the start of every
iteration so each part starts clean.
Signed-off-by: Robin Jarry <robin@jarry.cc>1 parent d2fa2b9 commit b452b8b
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| |||
0 commit comments