ChangedenCZD commented on a change in pull request #1444:
URL: https://github.com/apache/dubbo-go/pull/1444#discussion_r707205009
##########
File path: common/url.go
##########
@@ -259,6 +259,16 @@ func NewURL(urlString string, opts ...Option) (*URL,
error) {
return &s, perrors.Errorf("url.ParseQuery(raw url string{%s}),
error{%v}", serviceUrl.RawQuery, err)
}
+ // compatible "default." prefix
+ for key, value := range s.params {
+ if strings.Index(key, constant.DEFAULT_KEY_PREFIX) == 0 &&
len(value) > 0 {
Review comment:
Done
##########
File path: protocol/invocation/rpcinvocation.go
##########
@@ -165,6 +165,13 @@ func (r *RPCInvocation) SetAttachments(key string, value
interface{}) {
if r.attachments == nil {
r.attachments = make(map[string]interface{})
}
+ // compatible "default." prefix
+ if strings.Index(key, constant.DEFAULT_KEY_PREFIX) == 0 {
Review comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]