mocking c2import successfully
This commit is contained in:
@@ -167,7 +167,8 @@ def imports_get_token(
|
||||
|
||||
headers = {'Accept': 'application/json',
|
||||
'Api-Key': client_id,
|
||||
'Content-Type': 'application/json'}
|
||||
'Content-Type': 'application/json',
|
||||
'user-agent': 'sanderroosendaal'}
|
||||
|
||||
|
||||
if 'json' in oauth_data['content_type']:
|
||||
@@ -217,7 +218,7 @@ def imports_make_authorization_url(oauth_data):
|
||||
|
||||
|
||||
import urllib
|
||||
url = oauth_data['authorizaton_uri']+authorization_uri+urllib.urlencode(params)
|
||||
url = oauth_data['authorizaton_uri']+urllib.urlencode(params)
|
||||
|
||||
return HttpResponseRedirect(url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user