aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-proxy/src/proxy_h1.rs
diff options
context:
space:
mode:
authorMatthew Gumport <[email protected]>2024-12-13 15:07:12 -0800
committerYuchen Wu <[email protected]>2024-12-20 13:39:24 -0800
commita37224b50061d3a2e76ef1fbd87d426c7b904d51 (patch)
tree5130d44671578701f3d1c66f95804aface7e236d /pingora-proxy/src/proxy_h1.rs
parent2a94183feba3bee207c812fc543481ff98635db2 (diff)
downloadpingora-main.tar.gz
pingora-main.zip
add range_header_filter to proxy traitHEADmain
This makes the `range_header_filter` overridable. The new default implementation is what we were doing instead of calling a hook.
Diffstat (limited to 'pingora-proxy/src/proxy_h1.rs')
-rw-r--r--pingora-proxy/src/proxy_h1.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/pingora-proxy/src/proxy_h1.rs b/pingora-proxy/src/proxy_h1.rs
index d323562..580b070 100644
--- a/pingora-proxy/src/proxy_h1.rs
+++ b/pingora-proxy/src/proxy_h1.rs
@@ -492,10 +492,9 @@ impl<SV> HttpProxy<SV> {
ctx,
);
if !session.ignore_downstream_range {
- let range_type = proxy_cache::range_filter::range_header_filter(
- session.req_header(),
- &mut header,
- );
+ let range_type =
+ self.inner
+ .range_header_filter(session.req_header(), &mut header, ctx);
range_body_filter.set(range_type);
}
}