Skip to content

Commit

Permalink
Return full value of client in trace message (#3450)
Browse files Browse the repository at this point in the history
  • Loading branch information
reivaj05 authored Oct 9, 2024
1 parent dce9bbd commit 78aceb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/admin_trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ func shortTrace(info *madmin.ServiceTraceInfo) shortTraceMsg {
if host, ok := t.HTTP.ReqInfo.Headers["Host"]; ok {
s.Host = strings.Join(host, "")
}
cSlice := strings.Split(t.HTTP.ReqInfo.Client, ":")
s.Client = cSlice[0]
s.Client = t.HTTP.ReqInfo.Client
}

return s
Expand Down

0 comments on commit 78aceb2

Please sign in to comment.