Skip to content
Permalink
Browse files

Merge pull request #23 from yelizariev/11.0-fix-py3

🚑 fix to python3
  • Loading branch information...
itpp-bot committed Aug 20, 2019
2 parents 637c211 + 5ea283e commit 3a2defae438e8e16627958660d2a7a49c4fff596
Showing with 1 addition and 1 deletion.
  1. +1 −1 openapi/controllers/pinguin.py
@@ -189,7 +189,7 @@ def get_data_from_auth_header(header):
"""
normalized_token = header.replace('Basic ', '').replace('\\n', '').encode('utf-8')
try:
decoded_token_parts = base64.decodestring(normalized_token).split(':')
decoded_token_parts = base64.decodestring(normalized_token).split(b':')
except TypeError:
raise werkzeug.exceptions.HTTPException(response=error_response(500, 'Invalid header', 'Basic auth header must be valid base64 string'))

0 comments on commit 3a2defa

Please sign in to comment.
You can’t perform that action at this time.