Browse Source

feat:refactor code

RockyJin 4 years atrás
parent
commit
56500262f5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      xstream/server/server/rest.go

+ 1 - 0
xstream/server/server/rest.go

@@ -480,6 +480,7 @@ func fetchPluginList(hosts, ptype, os, arch string) (err error, result map[strin
 	result = make(map[string]string)
 	hostsArr := strings.Split(hosts, ",")
 	for _, host := range hostsArr {
+		host := strings.Trim(host, " ")
 		tmp := []string{host, "kuiper-plugins", version, ptype, os}
 		//The url is similar to http://host:port/kuiper-plugins/0.9.1/sinks/alpine
 		url := strings.Join(tmp, "/")