Skip to content

Commit

Permalink
Merge pull request #1109 from kevin-faliam/fix_UploadFileContext
Browse files Browse the repository at this point in the history
fix: UploadFileContext not calling api.AuthTestContext
  • Loading branch information
kanata2 committed Sep 11, 2022
2 parents 870ec8a + 6e76f47 commit ba4dcc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files.go
Expand Up @@ -299,7 +299,7 @@ func (api *Client) UploadFile(params FileUploadParameters) (file *File, err erro
func (api *Client) UploadFileContext(ctx context.Context, params FileUploadParameters) (file *File, err error) {
// Test if user token is valid. This helps because client.Do doesn't like this for some reason. XXX: More
// investigation needed, but for now this will do.
_, err = api.AuthTest()
_, err = api.AuthTestContext(ctx)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit ba4dcc3

Please sign in to comment.