Proxy's still not working sadly
parent
da2d31a838
commit
1ed62dc18c
|
@ -94,11 +94,7 @@ impl Handler for ProxyServer
|
||||||
// We first extract all URL segments starting from the mountpoint
|
// We first extract all URL segments starting from the mountpoint
|
||||||
let segments: PathBuf = req.segments(0..).unwrap();
|
let segments: PathBuf = req.segments(0..).unwrap();
|
||||||
|
|
||||||
let query_part = if let Some(query) = req.uri().query() {
|
let query_part = req.uri().query().map_or(String::from(""), |s| format!("?{}", s));
|
||||||
format!("?{}", query)
|
|
||||||
}else{
|
|
||||||
String::from("")
|
|
||||||
};
|
|
||||||
|
|
||||||
let url = format!(
|
let url = format!(
|
||||||
"{}{}/{}{}",
|
"{}{}/{}{}",
|
||||||
|
|
Reference in New Issue