mirror of
https://github.com/sadoyan/aralez.git
synced 2026-06-29 02:42:23 +08:00
unifying kubernetes and file provider configs
This commit is contained in:
@@ -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(¤t_path) {
|
||||
if !entry.value().is_empty() {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user