diff --git a/urlencode.go b/urlencode.go index ea26880..26d215d 100644 --- a/urlencode.go +++ b/urlencode.go @@ -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"})