mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-12-06 19:16:48 +01:00
Fix for query string not being passed.
This commit is contained in:
+4
-1
@@ -107,9 +107,12 @@ async fn index(req: HttpRequest) -> Result<HttpResponse, Box<dyn Error>> {
|
||||
return Err("Domain not allowed".into());
|
||||
}
|
||||
|
||||
let mut url = Url::parse(&*format!("https://{}{}", host, req.path()))?;
|
||||
url.set_query(Some(req.query_string()));
|
||||
|
||||
let mut request = Request::new(
|
||||
req.method().clone(),
|
||||
format!("https://{}{}", host, req.path()).parse().unwrap(),
|
||||
url,
|
||||
);
|
||||
|
||||
let request_headers = request.headers_mut();
|
||||
|
||||
Reference in New Issue
Block a user