v0.32.2
This commit is contained in:
1 parent
101df02a5f
commit
bb025dcf44
27 files changed
+541
-85
No files matched your search
@@ -136,8 +136,11 @@ assert basic_identity_pos < web_source_pos
|
||||
assert identity_pos < web_source_pos
|
||||
assert web_source_pos < proxy.index("let (backend, backend_lease, affinity_cookie)")
|
||||
web_source = rust_source(ROOT, "src/proxy/forward/web_source.rs")
|
||||
assert web_source.index("apply_response_rules(") > web_source.index("let origin_headers =")
|
||||
assert web_source.index("crate::transform::apply(") > web_source.index("apply_response_rules(")
|
||||
# The 0.32.2 local-304 path also applies response rules, before the normal
|
||||
# 200-origin processing. Enforce order using the latter's distinct call site.
|
||||
normal_origin_rules = "apply_response_rules(response.headers_mut(),"
|
||||
assert web_source.index(normal_origin_rules) > web_source.index("let origin_headers =")
|
||||
assert web_source.index("crate::transform::apply(") > web_source.index(normal_origin_rules)
|
||||
need(acl, "ambiguous encoded path character", '"/%2e%2e/secret"', '"/a%2fb"', '"/a%5cb"', '"/bad%"')
|
||||
need(admin, '"/web-server"', '"web-services"', '"vhost_metrics"')
|
||||
need((ROOT / "src/admin/panel_assets.rs").read_text(), '"/assets/web-server.js"')
|
||||
|
||||
Reference in new issue
Block a user