bug: apiv1 get_replay failed to response in some cases #672
Labels
bug
Something isn't working
good first issue
Good for newcomers
triage
This issue or pull request needs sorting.
Describe the bug
Function
api_get_replay
may fail to response in some cases about the bad naming format in the header.We found that it always occurred when the username has characters that were not from ASCII charsets.
Exception:
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 22-23: ordinal not in range(256)
Stacktrace:
To Reproduce
/get_replay
.Expected behavior
bancho.py Version
5.2.2
Python Version
3.11.X (Default)
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: