diff --git a/GeoHealthCheck/app.py b/GeoHealthCheck/app.py index 30465f2..dc359df 100644 --- a/GeoHealthCheck/app.py +++ b/GeoHealthCheck/app.py @@ -163,7 +163,7 @@ def load_user_from_request(request): authenticated = False try: username, password = base64.b64decode( - basic_auth_val).split(':'.encode()) + basic_auth_val.encode()).split(b':') user = User.query.filter_by(username=username).first() if user: