nuke/lib
Xe Iaso 497005ce3e
fix(lib): only use the first five characters of Accept-Language header values (#588)
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>
2025-05-30 13:15:03 -04:00
..
policy feat(expressions): add randInt function to allow making rules nondeterministic (#578) 2025-05-28 16:36:27 -04:00
testdata feat(lib): ensure that clients store cookies (#501) 2025-05-16 13:03:40 -04:00
anubis.go fix(lib): only use the first five characters of Accept-Language header values (#588) 2025-05-30 13:15:03 -04:00
anubis_test.go feat(lib): ensure that clients store cookies (#501) 2025-05-16 13:03:40 -04:00
config.go fix(lib): use a new cookie per domain when COOKIE_DOMAIN is set (#490) 2025-05-12 09:23:42 -04:00
http.go feat(lib): Add anubis_proxied_requests_total metric (#570) 2025-05-30 12:21:04 -04:00
http_test.go fix(lib): properly clear out test cookie (#522) 2025-05-18 22:41:26 +00:00