Skip to content

Commit

Permalink
Merge pull request #815 from jack15083/develop
Browse files Browse the repository at this point in the history
fix cannot call go provider service when used by java dubbo 2.7.7 version
  • Loading branch information
watermelo authored Oct 31, 2020
2 parents 1fbf795 + 3b28d2a commit 5f3d14d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions registry/base_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5f3d14d

Please sign in to comment.