diff --git a/qgis-app/plugins/middleware.py b/qgis-app/plugins/middleware.py index 17adb828..5d564ba9 100644 --- a/qgis-app/plugins/middleware.py +++ b/qgis-app/plugins/middleware.py @@ -14,7 +14,7 @@ def middleware(request): if auth_basic and not str(auth_basic).startswith('Bearer'): import base64 - username, dummy, password = base64.decodestring( + username, dummy, password = base64.decodebytes( auth_basic[6:].encode("utf8") ).partition(b":") username = username.decode("utf8")