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()
|
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)
|
||||||
|
|
Loading…
Reference in New Issue