diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-23 16:41:15 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-23 16:41:15 +0100 |
| commit | f1e5096b7827d82ab5b2df10080a2ad9223f2665 (patch) | |
| tree | d9d2d05f11daab95abcda1721ea278652d09357b /src/oauth.go | |
| parent | b9b2659908d5fe8afcc74f2769a8da7bab243018 (diff) | |
Return headers in HTTP for wireguard expiry
Diffstat (limited to 'src/oauth.go')
| -rw-r--r-- | src/oauth.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/oauth.go b/src/oauth.go index eb93c00..f0d5b4a 100644 --- a/src/oauth.go +++ b/src/oauth.go @@ -123,7 +123,7 @@ func (oauth *OAuth) getTokensWithAuthCode(authCode string) error { "content-type": {"application/x-www-form-urlencoded"}} opts := &HTTPOptionalParams{Headers: headers, Body: data} current_time := generateTimeSeconds() - body, bodyErr := HTTPPostWithOpts(reqURL, opts) + _, body, bodyErr := HTTPPostWithOpts(reqURL, opts) if bodyErr != nil { return bodyErr } @@ -160,7 +160,7 @@ func (oauth *OAuth) getTokensWithRefresh() error { "content-type": {"application/x-www-form-urlencoded"}} opts := &HTTPOptionalParams{Headers: headers, Body: data} current_time := generateTimeSeconds() - body, bodyErr := HTTPPostWithOpts(reqURL, opts) + _, body, bodyErr := HTTPPostWithOpts(reqURL, opts) if bodyErr != nil { return bodyErr } |
