Skip to content

Commit 98fe9a8

Browse files
committed
Fixing code authorize step, resolves Imgur#26
1 parent 1335fec commit 98fe9a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

imgurpython/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def authorize(self, response, grant_type='pin'):
9999
'client_id': self.client_id,
100100
'client_secret': self.client_secret,
101101
'grant_type': grant_type,
102-
grant_type: response
102+
'code' if grant_type == 'authorization_code' else grant_type: response
103103
}, True)
104104

105105
def prepare_headers(self, force_anon=False):

0 commit comments

Comments
 (0)