version split 디폴트 이름 변경

This commit is contained in:
2023-08-18 13:56:34 +09:00
parent 39e1b925e5
commit a8df7d54bd

View File

@ -186,7 +186,7 @@ func (sh *serviceDescription) readProfile(authtype string, id string, binfo stri
if err != nil {
return "", err
}
if userinfo.token == "" {
if len(userinfo.token) == 0 {
return "", errors.New("refreshtoken token not found")
}
@ -256,7 +256,7 @@ func (sh *serviceDescription) prepare(mg *Maingate) error {
if len(sh.VersionSplits) == 0 {
sh.VersionSplits = map[string]string{
"": strings.Join(namesOnly, ","),
"default": strings.Join(namesOnly, ","),
}
}
@ -758,7 +758,7 @@ func (sh *serviceDescription) findVersionSplit(version string) []byte {
}
}
}
return sh.divisionsSplits[""]
return sh.divisionsSplits["default"]
}
func (sh *serviceDescription) serveHTTP(w http.ResponseWriter, r *http.Request) {