This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/3.0 by this push:
new 78ca361 fix: attachments maybe nil or empty string (#1631)
78ca361 is described below
commit 78ca3617e06cebb091542bd02563b7b992b74c70
Author: phil <[email protected]>
AuthorDate: Fri Dec 3 19:50:02 2021 +0800
fix: attachments maybe nil or empty string (#1631)
---
protocol/dubbo/impl/hessian.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/protocol/dubbo/impl/hessian.go b/protocol/dubbo/impl/hessian.go
index 6ba77e8..fc3e73a 100644
--- a/protocol/dubbo/impl/hessian.go
+++ b/protocol/dubbo/impl/hessian.go
@@ -254,7 +254,7 @@ func unmarshalRequestBody(body []byte, p *DubboPackage)
error {
return perrors.WithStack(err)
}
- if attachments == nil {
+ if attachments == nil || attachments == "" {
attachments =
map[interface{}]interface{}{constant.InterfaceKey: target}
}