Permalink
Browse files

fixed POST with no files on Python 3

  • Loading branch information...
1 parent 5410821 commit d2df37bad2a6ab2d54497049c21248439635d69b @brosner brosner committed Jan 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 gondor/http.py
View
@@ -177,7 +177,7 @@ def http_request(self, request):
except TypeError:
raise TypeError("not a valid non-string sequence or mapping object")
if not files:
- data = urlencode(params, 1)
+ data = urlencode(params, 1).encode("utf-8")
else:
boundary, data = self.multipart_encode(params, files)
request.add_unredirected_header("Content-Type", b'multipart/form-data; boundary="'+ boundary + b'"')

0 comments on commit d2df37b

Please sign in to comment.