mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 22:35:52 +01:00
Merge 553020bb28 into 8fb92239dc
This commit is contained in:
commit
65d2daf6af
1 changed files with 11 additions and 1 deletions
12
client.go
12
client.go
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue