issues
search
blakev
/
python-syncthing
Python bindings to the Syncthing REST interface.
MIT License
75
stars
24
forks
source link
Fix POST requests and fix the tentative json.loads (bug #7)
#7
Closed
gdonval
closed
8 years ago
gdonval
commented
8 years ago
requests.request
requires
data
to be in a
bytes
format (json.dumps).
resp.content
is a
str
in Python3: either cast it to
bytes
(what I did) or dereference the string: c.startwith('{') -> c[0] == u'{'
requests.request
requiresdata
to be in abytes
format (json.dumps).resp.content
is astr
in Python3: either cast it tobytes
(what I did) or dereference the string: c.startwith('{') -> c[0] == u'{'