mirror of
https://github.com/samsonjs/agate.git
synced 2026-03-25 09:05:50 +00:00
Fix MIME type
This commit is contained in:
parent
9e039177df
commit
ece2f20305
1 changed files with 2 additions and 3 deletions
|
|
@ -59,10 +59,9 @@ async fn connection(acceptor: TlsAcceptor, stream: TcpStream) -> Result {
|
|||
eprintln!("Got request: {:?}", body);
|
||||
|
||||
let mut stream = stream.into_inner();
|
||||
stream.write_all(b"20 text/plain\r\n").await?;
|
||||
stream.write_all(b"20 text/gemini\r\n").await?;
|
||||
stream.write_all(b"=> ").await?;
|
||||
stream.write_all(body.trim().as_bytes()).await?;
|
||||
stream.write_all(b" Go to ").await?;
|
||||
stream.write_all(body.as_bytes()).await?;
|
||||
stream.write_all(b" Reload\r\n").await?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue