mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2026-02-06 10:16:29 +01:00
remove removal of host header
This commit is contained in:
@@ -60,8 +60,6 @@ impl HttpHandler for ProxyHandler {
|
|||||||
let uri = format!("https://{}{}", SERVER.lock().unwrap(), uri_path).parse::<Uri>().unwrap();
|
let uri = format!("https://{}{}", SERVER.lock().unwrap(), uri_path).parse::<Uri>().unwrap();
|
||||||
|
|
||||||
*request.uri_mut() = uri;
|
*request.uri_mut() = uri;
|
||||||
|
|
||||||
request.headers_mut().remove(http::header::HOST);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("New request: {}", &request.uri());
|
println!("New request: {}", &request.uri());
|
||||||
|
|||||||
Reference in New Issue
Block a user