remote: Decode method name as utf-8 instead of ascii for consistency.

This commit is contained in:
Martin Hostettler 2016-11-10 09:44:00 +01:00
parent c580d9c173
commit 0da913f8ed
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class RepositoryServer: # pragma: no cover
self.repository.close() self.repository.close()
raise UnexpectedRPCDataFormatFromClient(__version__) raise UnexpectedRPCDataFormatFromClient(__version__)
type, msgid, method, args = unpacked type, msgid, method, args = unpacked
method = method.decode('ascii') method = method.decode()
try: try:
if method not in self.rpc_methods: if method not in self.rpc_methods:
raise InvalidRPCMethod(method) raise InvalidRPCMethod(method)