mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 12:35:28 +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);
|
eprintln!("Got request: {:?}", body);
|
||||||
|
|
||||||
let mut stream = stream.into_inner();
|
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(b"=> ").await?;
|
||||||
stream.write_all(body.trim().as_bytes()).await?;
|
stream.write_all(body.trim().as_bytes()).await?;
|
||||||
stream.write_all(b" Go to ").await?;
|
stream.write_all(b" Reload\r\n").await?;
|
||||||
stream.write_all(body.as_bytes()).await?;
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue