diff options
Diffstat (limited to 'pkg/state/encode.go')
-rw-r--r-- | pkg/state/encode.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/state/encode.go b/pkg/state/encode.go index eb6527afc..1cec14f24 100644 --- a/pkg/state/encode.go +++ b/pkg/state/encode.go @@ -308,7 +308,7 @@ func (es *encodeState) encodeObject(obj reflect.Value, mapAsValue bool, format s }}} } case reflect.String: - object = &pb.Object{Value: &pb.Object_StringValue{obj.String()}} + object = &pb.Object{Value: &pb.Object_StringValue{[]byte(obj.String())}} case reflect.Ptr: if obj.IsNil() { // Handled specially in decode; store as a nil value. |