mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-29 04:35:54 -04:00
Remove double process_response function call
since it's called in anon_post already
This commit is contained in:
parent
6f8cd86417
commit
616483d78a
@ -55,7 +55,7 @@ def login(app, username, password):
|
|||||||
if response.is_redirect:
|
if response.is_redirect:
|
||||||
raise AuthenticationError()
|
raise AuthenticationError()
|
||||||
|
|
||||||
return http.process_response(response).json()
|
return response.json()
|
||||||
|
|
||||||
|
|
||||||
def get_browser_login_url(app):
|
def get_browser_login_url(app):
|
||||||
@ -79,9 +79,7 @@ def request_access_token(app, authorization_code):
|
|||||||
'redirect_uri': 'urn:ietf:wg:oauth:2.0:oob',
|
'redirect_uri': 'urn:ietf:wg:oauth:2.0:oob',
|
||||||
}
|
}
|
||||||
|
|
||||||
response = http.anon_post(url, data, allow_redirects=False)
|
return http.anon_post(url, data, allow_redirects=False).json()
|
||||||
|
|
||||||
return http.process_response(response).json()
|
|
||||||
|
|
||||||
|
|
||||||
def post_status(
|
def post_status(
|
||||||
|
Loading…
Reference in New Issue
Block a user