Skip to content

Commit 6e76f47

Browse files
committed
fix: UploadFileContext not calling api.AuthTestContext
1 parent 870ec8a commit 6e76f47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func (api *Client) UploadFile(params FileUploadParameters) (file *File, err erro
299299
func (api *Client) UploadFileContext(ctx context.Context, params FileUploadParameters) (file *File, err error) {
300300
// Test if user token is valid. This helps because client.Do doesn't like this for some reason. XXX: More
301301
// investigation needed, but for now this will do.
302-
_, err = api.AuthTest()
302+
_, err = api.AuthTestContext(ctx)
303303
if err != nil {
304304
return nil, err
305305
}

0 commit comments

Comments
 (0)