Skip to content
Snippets Groups Projects
Unverified Commit 5f3d14d6 authored by watermelon's avatar watermelon Committed by GitHub
Browse files

Merge pull request #815 from jack15083/develop

fix cannot call go provider service when used by java dubbo 2.7.7 version
parents 1fbf795c 3b28d2a0
No related branches found
No related tags found
No related merge requests found
......@@ -325,8 +325,16 @@ func (r *BaseRegistry) providerRegistry(c common.URL, params url.Values, f creat
}
host += ":" + c.Port
//delete empty param key
for key, val := range params {
if len(val) > 0 && val[0] == "" {
params.Del(key)
}
}
s, _ := url.QueryUnescape(params.Encode())
rawURL = fmt.Sprintf("%s://%s%s?%s", c.Protocol, host, c.Path, s)
// Print your own registration service providers.
dubboPath = fmt.Sprintf("/dubbo/%s/%s", r.service(c), (common.RoleType(common.PROVIDER)).String())
logger.Debugf("provider path:%s, url:%s", dubboPath, rawURL)
......
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