Browse Source

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

Martin Hostettler 8 năm trước cách đây
mục cha
commit
0da913f8ed
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/borg/remote.py

+ 1 - 1
src/borg/remote.py

@@ -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)