Return full value of client in trace message (#3450)

This commit is contained in:
Javier Adriel
2024-10-09 15:54:17 -06:00
committed by GitHub
parent dce9bbd046
commit 78aceb2b53

View File

@@ -146,8 +146,7 @@ func shortTrace(info *madmin.ServiceTraceInfo) shortTraceMsg {
if host, ok := t.HTTP.ReqInfo.Headers["Host"]; ok { if host, ok := t.HTTP.ReqInfo.Headers["Host"]; ok {
s.Host = strings.Join(host, "") s.Host = strings.Join(host, "")
} }
cSlice := strings.Split(t.HTTP.ReqInfo.Client, ":") s.Client = t.HTTP.ReqInfo.Client
s.Client = cSlice[0]
} }
return s return s