Skip to content

Commit

Permalink
support python 3 encode data
Browse files Browse the repository at this point in the history
  • Loading branch information
jmg committed Aug 11, 2022
1 parent ef7abdf commit 1b1a392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _make_request(self, url, data=None):
if not data:
data = None

return urlopen(url, data).read()
return urlopen(url, data.encode("utf-8")).read()

def _make_auth_request(self, path, extra_params=None, **data):
"""
Expand Down

0 comments on commit 1b1a392

Please sign in to comment.