Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed POST with no files on Python 3

  • Loading branch information...
commit d2df37bad2a6ab2d54497049c21248439635d69b 1 parent 5410821
@brosner brosner authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  gondor/http.py
View
2  gondor/http.py
@@ -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.
Something went wrong with that request. Please try again.