mirror of https://github.com/borgbackup/borg.git
remote: Decode method name as utf-8 instead of ascii for consistency.
This commit is contained in:
parent
c580d9c173
commit
0da913f8ed
|
@ -112,7 +112,7 @@ class RepositoryServer: # pragma: no cover
|
|||
self.repository.close()
|
||||
raise UnexpectedRPCDataFormatFromClient(__version__)
|
||||
type, msgid, method, args = unpacked
|
||||
method = method.decode('ascii')
|
||||
method = method.decode()
|
||||
try:
|
||||
if method not in self.rpc_methods:
|
||||
raise InvalidRPCMethod(method)
|
||||
|
|
Loading…
Reference in New Issue