Changed error message in NotFound handler.
This commit is contained in:
parent
472ebf5891
commit
8497efd6e1
@ -217,7 +217,7 @@ func NotFound(w http.ResponseWriter, r *http.Request) {
|
|||||||
if !strings.Contains(r.UserAgent(), "curl") {
|
if !strings.Contains(r.UserAgent(), "curl") {
|
||||||
web.Error404(utils.MainSite(r.Host), w)
|
web.Error404(utils.MainSite(r.Host), w)
|
||||||
} else {
|
} else {
|
||||||
fmt.Fprintln(w, "deleted")
|
fmt.Fprintln(w, "file not found")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user