Skip to content

Commit 78aceb2

Browse files
authored
Return full value of client in trace message (#3450)
1 parent dce9bbd commit 78aceb2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/admin_trace.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ func shortTrace(info *madmin.ServiceTraceInfo) shortTraceMsg {
146146
if host, ok := t.HTTP.ReqInfo.Headers["Host"]; ok {
147147
s.Host = strings.Join(host, "")
148148
}
149-
cSlice := strings.Split(t.HTTP.ReqInfo.Client, ":")
150-
s.Client = cSlice[0]
149+
s.Client = t.HTTP.ReqInfo.Client
151150
}
152151

153152
return s

0 commit comments

Comments
 (0)