Skip to content

Commit

Permalink
quickfix for string encoding basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Nov 3, 2020
1 parent a88a8fa commit 5d5c529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GeoHealthCheck/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5d5c529

Please sign in to comment.