fix(lib/test): fix failing test and invalid cloudflare workers rule

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-04-27 22:25:31 -04:00
parent 9f8ede7fe3
commit 029c79ba28
3 changed files with 5 additions and 7 deletions
+2 -4
View File
@@ -6,8 +6,6 @@
- userAgent.contains("MSIE") - userAgent.contains("MSIE")
# Trident is the Internet Explorer browser engine # Trident is the Internet Explorer browser engine
- userAgent.contains("Trident") - userAgent.contains("Trident")
# iPods are not in common use
- userAgent.contains("iPod")
# Opera is a fork of chrome now # Opera is a fork of chrome now
- userAgent.contains("Presto") - userAgent.contains("Presto")
# Windows CE is discontinued # Windows CE is discontinued
@@ -26,5 +24,5 @@
any: any:
# This is not released, even Windows 11 calls itself Windows 10 # This is not released, even Windows 11 calls itself Windows 10
- userAgent.contains("Windows NT 11.0") - userAgent.contains("Windows NT 11.0")
# Safari's User-Agent doesn't contain Safari # iPods are not in common use
- (!userAgent.contains("Chrome") && userAgent.contains("Safari")) - userAgent.contains("iPod")
+2 -2
View File
@@ -1,4 +1,4 @@
- name: cloudflare-workers - name: cloudflare-workers
expression: > headers_regex:
"Cf-Worker" in headers CF-Worker: .*
action: DENY action: DENY
+1 -1
View File
@@ -83,7 +83,7 @@ func TestCVE2025_24369(t *testing.T) {
Next: http.NewServeMux(), Next: http.NewServeMux(),
Policy: pol, Policy: pol,
CookieDomain: "local.cetacean.club", CookieDomain: ".local.cetacean.club",
CookiePartitioned: true, CookiePartitioned: true,
CookieName: t.Name(), CookieName: t.Name(),
}) })