mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-08-14 23:50:45 +00:00
Fix for query string not being passed.
This commit is contained in:
parent
3ab1529ba7
commit
44d1a0a053
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue