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:
parent
be715f7a55
commit
036ebe5372
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue