Commit 09918406 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

astakosclient: Fix Content-Type header in get_token requests

parent 2766457b
......@@ -927,7 +927,7 @@ class AstakosClient(object):
# --------------------------------
# do a POST to ``API_OA2_TOKEN``
def get_token(self, grant_type, client_id, client_secret, **body_params):
headers = {'Content-Type': 'application/x-www-form-urlencoded',
headers = {'content-type': 'application/x-www-form-urlencoded',
'Authorization': 'Basic %s' % b64encode('%s:%s' %
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment