Properly proxy the request upstream

This "works" in that it will proxy the request, but no inline modification is
happening yet
This commit is contained in:
R Tyler Croy 2020-09-07 14:59:54 -07:00
parent be715f7a55
commit 036ebe5372
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ impl AppState {
* back to the client request it.
*/
async fn proxy_upstream(req: Request<AppState>) -> Result<Response, tide::Error> {
let full_url = format!("{}{}", req.state().upstream, req.url());
let full_url = format!("{}{}", req.state().upstream, req.url().path());
info!("Proxying request upstream to {}", full_url);
/*
* We need to send the Authorization header along as well, otherwise