Skip to content

Commit

Permalink
fix bug: return after robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Jul 11, 2019
1 parent 04a7577 commit d155c89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rwtxt.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ func (rwt *RWTxt) Handle(w http.ResponseWriter, r *http.Request) (err error) {
// special path
w.Write([]byte(`User-agent: *
Disallow: /`))
return
} else if r.URL.Path == "/favicon.ico" {
// TODO
} else if r.URL.Path == "/sitemap.xml" {
Expand Down

0 comments on commit d155c89

Please sign in to comment.