fix(default-config): must-accept-rule on browsers only

TIL docker clients don't include the Accept header all the time. I would
have thought they did that. Oops.

Closes: #1346
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-12-19 15:36:47 -05:00
parent ba8a1b7caf
commit a7bf9ca491
3 changed files with 9 additions and 2 deletions

View File

@@ -134,7 +134,10 @@ bots:
adjust: -5
- name: should-have-accept
expression: '!("Accept" in headers)'
expression:
all:
- userAgent.contains("Mozilla")
- '!("Accept" in headers)'
action: WEIGH
weight:
adjust: 5

View File

@@ -118,7 +118,10 @@
adjust: -5
- name: should-have-accept
expression: '!("Accept" in headers)'
expression:
all:
- userAgent.contains("Mozilla")
- '!("Accept" in headers)'
action: WEIGH
weight:
adjust: 5