Added redirect and cgienv

This commit is contained in:
int 80h
2020-05-13 21:42:00 -04:00
parent 929a11a91c
commit dfae3705c4
12 changed files with 178 additions and 130 deletions

View File

@@ -6,10 +6,10 @@ const BASE: &'static str = "gemini://example.com/";
fn main() {
let query = match env::var("QUERY_STRING") {
Ok(q) => q,
_ => {
_ => {
println!("10\tGopher url:\r\n");
return;
},
}
};
println!("30\t{}{}\r\n", BASE, query);
}