Skip to content

Commit

Permalink
Merge 7d1a904 into 92df41c
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangedenCZD committed Jul 30, 2021
2 parents 92df41c + 7d1a904 commit 1b0eb6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/nacos/registry.go
Expand Up @@ -75,8 +75,8 @@ func getServiceName(url *common.URL) string {

func appendParam(target *bytes.Buffer, url *common.URL, key string) {
value := url.GetParam(key, "")
target.Write([]byte(constant.NACOS_SERVICE_NAME_SEPARATOR))
if strings.TrimSpace(value) != "" {
target.Write([]byte(constant.NACOS_SERVICE_NAME_SEPARATOR))
target.Write([]byte(value))
}
}
Expand Down

0 comments on commit 1b0eb6b

Please sign in to comment.