Skip to content
Snippets Groups Projects
Commit 7ecc571d authored by Xin.Zh's avatar Xin.Zh Committed by GitHub
Browse files

Merge pull request #1087 from rockXiaofeng/Ftr/nilAttachments

Bugfix: nil attachments
parents c618713a c299e4a3
No related branches found
No related tags found
No related merge requests found
...@@ -254,6 +254,10 @@ func unmarshalRequestBody(body []byte, p *DubboPackage) error { ...@@ -254,6 +254,10 @@ func unmarshalRequestBody(body []byte, p *DubboPackage) error {
return perrors.WithStack(err) return perrors.WithStack(err)
} }
if attachments == nil {
attachments = map[interface{}]interface{}{constant.INTERFACE_KEY: target}
}
if v, ok := attachments.(map[interface{}]interface{}); ok { if v, ok := attachments.(map[interface{}]interface{}); ok {
v[DUBBO_VERSION_KEY] = dubboVersion v[DUBBO_VERSION_KEY] = dubboVersion
req[6] = ToMapStringInterface(v) req[6] = ToMapStringInterface(v)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment