fix(default-config): must-accept-rule on browsers only (#1350)
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:
parent
535ed74b17
commit
9d9be61c24
3 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue