Added redirect and cgienv
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user