Commits

Anonymous committed 9d0af32

set default headers

  • Participants
  • Parent commits 5c2725f

Comments (0)

Files changed (1)

restclient/rest.py

                 size = len(body)
                 body = to_bytestring(body)
             elif isinstance(body, dict):
+                _headers.setdefault('Content-Type', "application/x-www-form-urlencoded; charset=utf-8")
                 body = form_encode(body)
                 size = len(body)
             else: