fixes typo robots #154

This commit is contained in:
Sergii Bomko 2018-04-19 10:20:07 +02:00
parent d98a110aef
commit f0de54eaf1

View file

@ -850,7 +850,7 @@ func (s *Server) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
return
}
if r.URL.Path == "/robot.txt" {
if r.URL.Path == "/robots.txt" {
w.Header().Set("Last-Modified", time.Now().Format(http.TimeFormat))
fmt.Fprintf(w, "User-agent: *\nDisallow: /")
return