exp
This commit is contained in:
parent
28d738f9cf
commit
d9efeb42d6
11 changed files with 778 additions and 54 deletions
|
|
@ -168,6 +168,12 @@ where
|
|||
// can update request line i.e., http version, only if not upgrade (http 1.1)
|
||||
update_request_line(req, upstream_chosen, upstream_candidates)?;
|
||||
}
|
||||
|
||||
if let Some(set_host) = &upstream_candidates.set_host {
|
||||
if let Some(host) = req.headers_mut().get_mut(&header::HOST) {
|
||||
*host = HeaderValue::from_str(set_host).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
Ok(context)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue