Skip to content

Commit

Permalink
remove unneccessary json serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
charliewolf committed Jan 9, 2017
1 parent e0ffdb2 commit b119dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynder/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def _url(self, path):
return constants.API_BASE + path

def auth(self, facebook_id, facebook_token):
data = json.dumps({"facebook_id": str(facebook_id),
"facebook_token": facebook_token})
data = {"facebook_id": str(facebook_id),
"facebook_token": facebook_token}
result = self._session.post(
self._url('/auth'), json=data, proxies=self._proxies).json()
if 'token' not in result:
Expand Down

0 comments on commit b119dd6

Please sign in to comment.