hotfix v0.4.2

This commit is contained in:
Mukhtar Akere
2025-02-28 03:33:11 +01:00
parent f04d7ac86e
commit 7a989ccf2b
3 changed files with 35 additions and 13 deletions

View File

@@ -63,8 +63,14 @@ func (q *QBit) authContext(next http.Handler) http.Handler {
a = arr.New(category, "", "", false)
}
if err == nil {
a.Host = strings.TrimSpace(host)
a.Token = strings.TrimSpace(token)
host = strings.TrimSpace(host)
if host != "" {
a.Host = host
}
token = strings.TrimSpace(token)
if token != "" {
a.Token = token
}
}
svc.Arr.AddOrUpdate(a)