Choose provider
This commit is contained in:
parent
d8d849a47a
commit
c053e4ada3
6 changed files with 273 additions and 11 deletions
|
|
@ -168,7 +168,7 @@ 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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue