1
0
réplica de https://github.com/astaxie/beego.git synced 2025-07-05 22:10:19 +00:00

fix the wrong io.Writer

Este commit está contenido en:
astaxie
2016-01-18 00:03:39 +08:00
padre 9adf20d72e
commit da36d1d0e7

Ver fichero

@ -103,8 +103,8 @@ func (e *Email) Bytes() ([]byte, error) {
}
e.Headers.Set("Content-Type", fmt.Sprintf("multipart/mixed;\r\n boundary=%s\r\n", w.Boundary()))
fmt.Fprintf(w, "%s:", "Content-Type")
fmt.Fprintf(w, " %s\r\n", fmt.Sprintf("multipart/mixed;\r\n boundary=%s\r\n", w.Boundary()))
fmt.Fprintf(buff, "%s:", "Content-Type")
fmt.Fprintf(buff, " %s\r\n", fmt.Sprintf("multipart/mixed;\r\n boundary=%s\r\n", w.Boundary()))
// Start the multipart/mixed part
fmt.Fprintf(buff, "--%s\r\n", w.Boundary())