diff --git a/protocol/dubbo/impl/hessian.go b/protocol/dubbo/impl/hessian.go index e355276c37f9d1babc12f7e3b694ec7a193aed80..4aaf67b6f3a869686be673eec1ef76be44e2eba3 100644 --- a/protocol/dubbo/impl/hessian.go +++ b/protocol/dubbo/impl/hessian.go @@ -254,6 +254,10 @@ func unmarshalRequestBody(body []byte, p *DubboPackage) error { return perrors.WithStack(err) } + if attachments == nil { + attachments = map[interface{}]interface{}{constant.INTERFACE_KEY: target} + } + if v, ok := attachments.(map[interface{}]interface{}); ok { v[DUBBO_VERSION_KEY] = dubboVersion req[6] = ToMapStringInterface(v)