This commit is contained in:
Mateusz Gruszczyński committed 2026-10-06 23:54:01 +02:00
1 parent 9d6614c1b4
commit a9f9450f80
16 files changed
+171 -47

No files matched your search

+11 -2
View File
@@ -801,8 +801,17 @@ for marker in [
assert marker in compression_finalize_source, marker
headers_source_0267 = rust_source(root, "src/headers.rs")
vhost_core_0267 = (root / "src/admin/web/vhosts/core.js").read_text()
assert '| "age"' in headers_source_0267, "Age must be protected from generic response rules"
assert '["host", "age", "connection"' in vhost_core_0267, "UI must protect Age consistently"
for marker in [
'pub fn apply_wire_age',
'wire_only: bool',
'wire_only: direction == Direction::Response',
'rule.name.eq_ignore_ascii_case("age")',
'if !rule.wire_only',
]:
assert marker in headers_source_0267, marker
assert '["host", "connection", "content-length"' in vhost_core_0267, "UI protected header set must stay intact"
assert '["host", "age", "connection"' not in vhost_core_0267, "0.26.6 Age rules must remain UI-loadable"
assert 'apply_response_age_rules(' in compression_finalize_source, "Age wire rules must run in final response stage"
compression_tester_0267 = (root / "scripts/test_compression.py").read_text()
for marker in ["--revalidate", "if revalidate:", 'headers["Cache-Control"] = "no-cache"', "headers.get('Age', '-')"]:
assert marker in compression_tester_0267, marker