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

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:46:27 -04:00
parent 958992a69a
commit 48fe52eb2a
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