Archived
1
0

gay bullshit

This commit is contained in:
Jeff Becker
2017-11-06 19:09:45 -05:00
parent 99a3403ed8
commit 666549e1e4
3 changed files with 25 additions and 19 deletions

View File

@@ -414,7 +414,7 @@ func (self *nntpArticle) WriteBody(wr io.Writer, limit int64) (err error) {
boundary, ok := params["boundary"]
if ok {
nlw := NewLineWriter(wr, limit)
nlw := NewLineWriter(wr, 80)
w := multipart.NewWriter(nlw)
err = w.SetBoundary(boundary)
@@ -426,7 +426,7 @@ func (self *nntpArticle) WriteBody(wr io.Writer, limit int64) (err error) {
continue
}
hdr := att.Header()
hdr.Add("Content-Transfer-Encoding", "base64")
hdr.Set("Content-Transfer-Encoding", "base64")
part, err := w.CreatePart(hdr)
if err != nil {
log.Println("failed to create part?", err)
@@ -452,7 +452,7 @@ func (self *nntpArticle) WriteBody(wr io.Writer, limit int64) (err error) {
err = w.Close()
w = nil
} else {
nlw := NewLineWriter(wr, limit)
nlw := NewLineWriter(wr, 80)
// write out message
_, err = io.WriteString(nlw, self.message)
}