mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-05-23 14:18:25 +00:00
497005ce3e
For some reason, Google Chrome will randomly send a "full" Accept-Language header, and other times it will send a "partial" Accept-Language header. This makes the challenge construction inconsistent. This commit fixes this issue by only considering up to the first five characters of the Accept-Language header when making a challenge string. Signed-off-by: Xe Iaso <me@xeiaso.net>