aboutsummaryrefslogtreecommitdiffstats
path: root/hived.go
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-07-22 04:13:42 +0000
committerterminaldweller <thabogre@gmail.com>2021-07-22 04:13:42 +0000
commitb9a191dce93c5b5d6825c14d2ad336914ff4ef86 (patch)
treede7048f25c30eb4206961c5d85976ed1a96c8458 /hived.go
parentwant to switch to grpc for the telegram bot. obviously take the telegram bot ... (diff)
downloadhived-b9a191dce93c5b5d6825c14d2ad336914ff4ef86.tar.gz
hived-b9a191dce93c5b5d6825c14d2ad336914ff4ef86.zip
go mod update and postman update [ci skip]
Diffstat (limited to '')
-rw-r--r--hived.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/hived.go b/hived.go
index 759c403..97e9548 100644
--- a/hived.go
+++ b/hived.go
@@ -592,6 +592,7 @@ func healthHandler(w http.ResponseWriter, r *http.Request) {
}
func robotsHandler(w http.ResponseWriter, r *http.Request) {
+ w.Header().Add("Content-Type", "text/plain")
json.NewEncoder(w).Encode(struct {
UserAgents string `json:"User-Agents"`
Disallow string `json:"Disallow"`