test(lib): add a test for the X-Forwarded-For middleware (#912)

Previously the X-Forwarded-For middleware could return two commas in a
row. This is a regression test to make sure that doesn't happen again.

Imports a patch previously exclusive to Botstopper.

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-07-25 10:58:41 -04:00
committed by GitHub
parent 9affd2edf4
commit 7d7028d25c
2 changed files with 43 additions and 0 deletions

4
lib/testdata/permissive.yaml vendored Normal file
View File

@@ -0,0 +1,4 @@
bots:
- import: (data)/common/allow-private-addresses.yaml
dnsbl: false