Commit 1372a1ec authored by Łukasz Nowak's avatar Łukasz Nowak

Typo.

parent f9af0ac7
...@@ -85,9 +85,9 @@ def Facebook_checkUserExistence(self): ...@@ -85,9 +85,9 @@ def Facebook_checkUserExistence(self):
url = urlparse.urlsplit(self.portal_preferences.getPreferredVifibRestApiLoginCheck()) url = urlparse.urlsplit(self.portal_preferences.getPreferredVifibRestApiLoginCheck())
connection_kw = {'host': url.netloc, 'timeout': 5} connection_kw = {'host': url.netloc, 'timeout': 5}
if url.scheme == 'http': if url.scheme == 'http':
connection = httplib.HTTPConnection(connection_kw) connection = httplib.HTTPConnection(**connection_kw)
else: else:
connection = httplib.HTTPSConnection(connection_kw) connection = httplib.HTTPSConnection(**connection_kw)
connection.request('GET', url.path, headers = { connection.request('GET', url.path, headers = {
'Authorization' : 'Facebook %s' % access_token, 'Authorization' : 'Facebook %s' % access_token,
'Accept': 'application/json'}) 'Accept': 'application/json'})
......
387 388
\ No newline at end of file \ No newline at end of file
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