mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-02 03:28:25 +08:00
object put: Added plaintext marshaler
This commit is contained in:

committed by
Juan Batiz-Benet

parent
b4de6cce9a
commit
fceb55ef1e
@ -221,6 +221,12 @@ Data should be in the format specified by <encoding>.
|
|||||||
|
|
||||||
return output, nil
|
return output, nil
|
||||||
},
|
},
|
||||||
|
Marshalers: cmds.MarshalerMap{
|
||||||
|
cmds.Text: func(res cmds.Response) ([]byte, error) {
|
||||||
|
object := res.Output().(*Object)
|
||||||
|
return []byte(object.Hash), nil
|
||||||
|
},
|
||||||
|
},
|
||||||
Type: &Object{},
|
Type: &Object{},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user