Compare commits

...

1 Commits
v3.10.3 ... v3

Author SHA1 Message Date
3863e4d8d3 add codec.RawMessage support
All checks were successful
test / test (push) Successful in 1m46s
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-12-23 20:58:57 +03:00

View File

@ -37,7 +37,10 @@ func (c *urlencodeCodec) Marshal(v interface{}, opts ...codec.Option) ([]byte, e
return m.Data, nil
case *pb.Frame:
return m.Data, nil
case codec.RawMessage:
return []byte(m), nil
case *codec.RawMessage:
return []byte(*m), nil
}
uv, err := rutil.StructURLValues(v, "", []string{"protobuf", "json", "xml", "yaml"})