mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-02-25 23:15:26 +00:00
fix url format
This commit is contained in:
parent
ba48746306
commit
b8c195675c
@ -39,7 +39,8 @@ impl HttpHandler for ProxyHandler {
|
||||
|
||||
// Check URI against constraints.
|
||||
if path.contains("hoyoverse.com") || path.contains("mihoyo.com") || path.contains("yuanshen.com") {
|
||||
uri = ("127.0.0.1".to_string() + uri.path()).parse::<Uri>().unwrap();
|
||||
println!("uri path: {}", uri.path());
|
||||
uri = format!("https://127.0.0.1:443{}", uri.path()).parse::<Uri>().unwrap();
|
||||
}
|
||||
|
||||
let builder = Request::builder()
|
||||
|
Loading…
x
Reference in New Issue
Block a user