This commit is contained in:
Brad Murray 2026-03-10 20:23:51 -07:00 committed by GitHub
commit 65d2daf6af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2518,7 +2518,17 @@ func (cli *Client) GetKeyBackup(ctx context.Context, version id.KeyBackupVersion
urlPath := cli.BuildURLWithQuery(ClientURLPath{"v3", "room_keys", "keys"}, map[string]string{
"version": string(version),
})
_, err = cli.MakeRequest(ctx, http.MethodGet, urlPath, nil, &resp)
_, err = cli.MakeFullRequest(ctx, FullRequest{
Method: http.MethodGet,
URL: urlPath,
ResponseJSON: &resp,
Client: &http.Client{
Timeout: 180 * time.Second,
Transport: &http.Transport{
ResponseHeaderTimeout: 180 * time.Second,
},
},
})
return
}