From 2bcfdda7c623f16b71e92d5a6458c669e6ca8ce3 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 30 Nov 2017 21:22:08 -0500 Subject: textproto: don't trim the trailing LF on cat-blob results --- textproto/catblob.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/textproto/catblob.go b/textproto/catblob.go index 9b0f8d7..678b842 100644 --- a/textproto/catblob.go +++ b/textproto/catblob.go @@ -48,7 +48,7 @@ func (cbr *CatBlobReader) ReadLine() (line string, err error) { } data := make([]byte, size+1) _, err = io.ReadFull(cbr.r, data) - line += string(data[:size]) + line += string(data) return } -- cgit v1.2.3-54-g00ecf