fixed incorrect response metadata filling (#160)
All checks were successful
coverage / build (push) Successful in 1m52s
test / test (push) Successful in 4m56s
sync / sync (push) Successful in 12s

This commit is contained in:
2025-10-08 17:33:26 +05:00
committed by GitHub
parent 55623618a5
commit 62bce65656
3 changed files with 96 additions and 4 deletions

View File

@@ -211,7 +211,7 @@ func (c *Client) parseRsp(ctx context.Context, hrsp *http.Response, rsp any, opt
if opts.ResponseMetadata != nil {
for k, v := range hrsp.Header {
opts.ResponseMetadata.Set(k, strings.Join(v, ","))
opts.ResponseMetadata.Append(k, v...)
}
}