This commit is contained in:
int 80h
2020-05-28 23:55:32 -04:00
parent b1743749ab
commit 543ce4c15e
5 changed files with 32 additions and 4 deletions

View File

@@ -176,6 +176,8 @@ async fn handle_connection(
}
None => {}
}
#[cfg(feature = "proxy")]
match &srv.server.proxy {
Some(pr) => match url.path_segments().map(|c| c.collect::<Vec<_>>()) {
Some(s) => match pr.get(s[0]) {
@@ -190,6 +192,7 @@ async fn handle_connection(
None => {}
}
#[cfg(feature = "scgi")]
match &srv.server.scgi {
Some(sc) => {
let u = url.path().trim_end_matches("/");
@@ -258,6 +261,7 @@ async fn handle_connection(
}
}
#[cfg(feature = "cgi")]
if srv.server.cgi.unwrap_or(false) {
match &srv.server.cgipath {
Some(c) => {