You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2024/12/15 12:21:57 UTC
(dubbo-go) branch develop updated: feat: 修复代理Http请求,变量名自动进行驼峰转换问题 (#2746)
This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/develop by this push:
new cdcc10c03 feat: 修复代理Http请求,变量名自动进行驼峰转换问题 (#2746)
cdcc10c03 is described below
commit cdcc10c0381edff645dc0719db10b6ce360e0086
Author: gexin.coder <ge...@gmail.com>
AuthorDate: Sun Dec 15 20:21:51 2024 +0800
feat: 修复代理Http请求,变量名自动进行驼峰转换问题 (#2746)
issue 2725
---
protocol/triple/triple_protocol/codec.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/protocol/triple/triple_protocol/codec.go b/protocol/triple/triple_protocol/codec.go
index 941afb17f..4009672db 100644
--- a/protocol/triple/triple_protocol/codec.go
+++ b/protocol/triple/triple_protocol/codec.go
@@ -150,7 +150,9 @@ func (c *protoJSONCodec) Marshal(message interface{}) ([]byte, error) {
if !ok {
return nil, errNotProto(message)
}
- var options protojson.MarshalOptions
+ var options protojson.MarshalOptions = protojson.MarshalOptions{
+ UseProtoNames: true,
+ }
return options.Marshal(protoMessage)
}