mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-11 11:08:48 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user