summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-11-30 21:22:08 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-11-30 21:22:08 -0500
commit2bcfdda7c623f16b71e92d5a6458c669e6ca8ce3 (patch)
treef1eaeda5c485f037e21ea68b7397a2d005493304
parente63e838d85eed5147aefcbca81ce18a16cd8fd4b (diff)
textproto: don't trim the trailing LF on cat-blob results
-rw-r--r--textproto/catblob.go2
1 files changed, 1 insertions, 1 deletions
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
}