mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Fix for issue5040. Adding support for unicode message passing and tests for unicode message and test for Content-Length.
This commit is contained in:
parent
df8709d7b1
commit
b3af08f84c
3 changed files with 44 additions and 13 deletions
|
@ -1316,7 +1316,7 @@ class ServerProxy:
|
|||
transport = Transport(use_datetime=use_datetime)
|
||||
self.__transport = transport
|
||||
|
||||
self.__encoding = encoding
|
||||
self.__encoding = encoding or 'utf-8'
|
||||
self.__verbose = verbose
|
||||
self.__allow_none = allow_none
|
||||
|
||||
|
@ -1324,7 +1324,7 @@ class ServerProxy:
|
|||
# call a method on the remote server
|
||||
|
||||
request = dumps(params, methodname, encoding=self.__encoding,
|
||||
allow_none=self.__allow_none)
|
||||
allow_none=self.__allow_none).encode(self.__encoding)
|
||||
|
||||
response = self.__transport.request(
|
||||
self.__host,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue