diff options
Diffstat (limited to 'textproto/io.go')
-rw-r--r-- | textproto/io.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/textproto/io.go b/textproto/io.go index f31f950..8350021 100644 --- a/textproto/io.go +++ b/textproto/io.go @@ -138,11 +138,11 @@ func (cbw *CatBlobWriter) WriteLine(a ...interface{}) error { return err } -func (cbw *CatBlobWriter) WriteBlob(sha1 string, data []byte) error { +func (cbw *CatBlobWriter) WriteBlob(sha1 string, data string) error { err := cbw.WriteLine(sha1, "blob", len(data)) if err != nil { return err } - _, err = cbw.w.Write(data) + _, err = io.WriteString(cbw.w, data) return err } |