diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-05-10 11:08:10 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-05-10 11:08:10 +0100 |
commit | 77722c5a4f5330f6fe517edc2d11bcba8c1fc274 (patch) | |
tree | 2c1da8cb54d9726e091a9e88b1386af2438322ee /clientapi | |
parent | 1b3fa9689ca28de2337b67253089e286694c60e9 (diff) |
Back out matrix-org/dendrite#2421 by restoring `http.Client`s
This creates problems with non-HTTPS endpoints and should fix #2444.
Diffstat (limited to 'clientapi')
-rw-r--r-- | clientapi/threepid/invites.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clientapi/threepid/invites.go b/clientapi/threepid/invites.go index 6e7426a7..9670feca 100644 --- a/clientapi/threepid/invites.go +++ b/clientapi/threepid/invites.go @@ -231,7 +231,7 @@ func queryIDServerStoreInvite( profile = &authtypes.Profile{} } - client := gomatrixserverlib.NewClient() + client := http.Client{} data := url.Values{} data.Add("medium", body.Medium) @@ -253,7 +253,7 @@ func queryIDServerStoreInvite( } req.Header.Add("Content-Type", "application/x-www-form-urlencoded") - resp, err := client.DoHTTPRequest(ctx, req) + resp, err := client.Do(req.WithContext(ctx)) if err != nil { return nil, err } |