aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index c600985..2b227a0 100644
--- a/main.go
+++ b/main.go
@@ -583,6 +583,12 @@ func main() {
return
}
+ if r.URL.Path == "/robots.txt" {
+ w.WriteHeader(http.StatusOK)
+ w.Write([]byte("User-agent: *\nDisallow: /\n"))
+ return
+ }
+
req := gemini.Request{}
req.URL = &url.URL{}
req.URL.Scheme = root.Scheme