unifying kubernetes and file provider configs

This commit is contained in:
Ara Sadoyan
2025-10-15 19:13:33 +02:00
parent 25693a7058
commit e87c60cf4f
4 changed files with 29 additions and 25 deletions

View File

@@ -52,7 +52,6 @@ impl GetHost for LB {
let host_entry = self.headers.get(peer)?;
let mut current_path = path.to_string();
let mut best_match: Option<Vec<(String, String)>> = None;
loop {
if let Some(entry) = host_entry.get(&current_path) {
if !entry.value().is_empty() {

View File

@@ -215,6 +215,7 @@ impl ProxyHttp for LB {
let path = session.req_header().uri.path();
let host_header = host;
let split_header = host_header.split_once(':');
match split_header {
Some(sh) => {
let yoyo = self.get_header(sh.0, path);