We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
>>> from werkzeug.datastructures import Authorization >>> Authorization.from_header("Basic foo") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/private/tmp/.venv/lib/python3.11/site-packages/werkzeug/datastructures/auth.py", line 109, in from_header username, _, password = base64.b64decode(rest).decode().partition(":") ^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/base64.py", line 88, in b64decode return binascii.a2b_base64(s, strict_mode=validate) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ binascii.Error: Incorrect padding
I would expect Werkzeug to handle this situation and return None.
None
3.11.3
2.3.4
The text was updated successfully, but these errors were encountered:
I've updated the title to describe the actual issue you're asking to fix. Happy to review a PR.
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
Expected behavior
I would expect Werkzeug to handle this situation and return
None
.Environment
3.11.3
2.3.4
The text was updated successfully, but these errors were encountered: