diff options
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 } |
