sending correct headers while provisionning services

This commit is contained in:
Serghei Mihai 2015-02-03 16:24:52 +01:00
parent 74d0811693
commit 606ae99952
1 changed files with 4 additions and 1 deletions

View File

@ -110,9 +110,12 @@ def create_organization(context, data_dict):
'motivation': 'Used to link user to the organization'
}]
}
headers = {'Content-type': 'application/json',
'Accept': 'application/json'}
requests.post(registration_uri,
data = services,
auth=(client_id, client_secret)
auth=(client_id, client_secret),
headers=headers
)
except Exception, e:
log.debug('Exception "%s" occured while creating organization' % e)