aboutsummaryrefslogtreecommitdiff
path: root/object/blob/append.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/blob/append.go')
-rw-r--r--object/blob/append.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/object/blob/append.go b/object/blob/append.go
index 378e4edb..8106f1c5 100644
--- a/object/blob/append.go
+++ b/object/blob/append.go
@@ -12,7 +12,7 @@ func (blob *Blob) AppendWithoutHeader(dst []byte) ([]byte, error) {
// AppendWithHeader renders the raw object (header + body).
func (blob *Blob) AppendWithHeader(dst []byte) ([]byte, error) {
- dst = header.Append(dst, typ.TypeBlob, uint64(len(blob.Data)))
+ dst = header.Append(dst, typ.Blob, len(blob.Data))
return blob.AppendWithoutHeader(dst)
}