Commits

benoitc  committed b18b8a6

fix url encoding

  • Participants
  • Parent commits 9d0af32

Comments (0)

Files changed (1)

File restclient/rest.py

             elif isinstance(body, dict):
                 _headers.setdefault('Content-Type', "application/x-www-form-urlencoded; charset=utf-8")
                 body = form_encode(body)
+                print body
                 size = len(body)
             else:
                 raise RequestError('Unable to calculate '
     for key, value in obj.items():
         tmp.append("%s=%s" % (url_quote(key), 
                 url_quote(value)))
-    return to_bytestring(";".join(tmp))
+    return to_bytestring("&".join(tmp))