diff --git a/src/main.rs b/src/main.rs index 4dbb70b..a3b60c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -75,13 +75,16 @@ fn handle_connection(mut stream: TcpStream) { let get = format!( "{} {} {}\r\n {}\r\n", host, _path, _post_len, _post); let get_bytes = get.as_bytes(); + + let status_line = "2 text/gemini\r\n"; + /* let (status_line, _filename) = if buffer.starts_with(get_bytes) { ("2 text/gemini\r\n", "index.gmi") } else { - ("4 Not found\r\n", "") // TDOD: fix Not Found behaviour + ("4 Not found\r\n", "") // TODO: fix Not Found behaviour }; - + */ //let filename = "index.gmi"; /* let _contents = "";