mirror of
https://github.com/borgbackup/borg.git
synced 2026-03-25 03:45:09 -04:00
remote: Decode method name as utf-8 instead of ascii for consistency.
This commit is contained in:
parent
c580d9c173
commit
0da913f8ed
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue