mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2024-10-23 06:57:26 +00:00
Add robots.txt (#542)
This commit is contained in:
parent
ae2a67422f
commit
41115e0b34
1 changed files with 7 additions and 0 deletions
|
@ -340,6 +340,13 @@ impl JMAP {
|
|||
.await;
|
||||
}
|
||||
}
|
||||
"robots.txt" => {
|
||||
return Resource {
|
||||
content_type: "text/plain",
|
||||
contents: b"User-agent: *\nDisallow: /\n".to_vec(),
|
||||
}
|
||||
.into_http_response();
|
||||
}
|
||||
_ => {
|
||||
let path = req.uri().path();
|
||||
return match self
|
||||
|
|
Loading…
Reference in a new issue