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
|
||||
let segments: PathBuf = req.segments(0..).unwrap();
|
||||
|
||||
let query_part = if let Some(query) = req.uri().query() {
|
||||
format!("?{}", query)
|
||||
}else{
|
||||
String::from("")
|
||||
};
|
||||
let query_part = req.uri().query().map_or(String::from(""), |s| format!("?{}", s));
|
||||
|
||||
let url = format!(
|
||||
"{}{}/{}{}",
|
||||
|
|
Reference in New Issue