From 0d5ed1f8d4703646490712a7b79770e11d387398 Mon Sep 17 00:00:00 2001 From: PhilYue Date: Thu, 2 Dec 2021 14:07:24 +0800 Subject: [PATCH] fix: attachments maybe nil or empty string --- 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 6ba77e8138..fc3e73a383 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} }