summaryrefslogtreecommitdiff
path: root/textproto
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-11-17 14:54:21 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-11-17 14:54:21 -0500
commit5b3b19e1280ac879567f9299639f60e5b1dd0c14 (patch)
treea258bc903f565dda953ba9cbaffffe79e8236817 /textproto
parentda3b805dfc6b99524417dab7ee90dcc0765f6ea7 (diff)
work on the frontend a bit more
Diffstat (limited to 'textproto')
-rw-r--r--textproto/io.go4
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
}