~julienxx/pollux

d7fb93944c635c631ae9f69ab79e2309e46c96fb — Julien Blanchard 2 years ago 2e3fbee
Update for 2 digits statuses
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main.rs
M src/main.rs => src/main.rs +1 -1
@@ 41,7 41,7 @@ fn main() {

fn handle_client(mut stream: TlsStream<TcpStream>) {
    // a header
    stream.write(b"200\ttext/gemini\r\n").unwrap();
    stream.write(b"20\ttext/gemini\r\n").unwrap();

    let content = get_content();
    stream.write_all(content.as_bytes()).expect("Unable to serve file");