Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Commit

Permalink
Encode if an encoding is set
Browse files Browse the repository at this point in the history
  • Loading branch information
projekt01 committed Dec 2, 2007
1 parent a9938df commit 6019140
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/z3c/json/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ def __request(self, request):
This will raise a ResponseError or return the JSON result dict
"""
# apply encoding if any
if self.__encoding:
request = request.encode(self.__encoding)
# start the call
try:
response = self.__transport.request(self.__host, self.__handler,
Expand Down

0 comments on commit 6019140

Please sign in to comment.