diff --git a/internal/http/handlers.go b/internal/http/handlers.go index da235bf..d6a30d1 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -229,15 +229,6 @@ func (h *UploadHandlers) Delete(w http.ResponseWriter, r *http.Request) { } } -func NotFound(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotFound) - if !strings.Contains(r.UserAgent(), "curl") { - web.Error404(utils.MainSite(r.Host), w) - } else { - fmt.Fprintln(w, "file not found") - } -} - func Error(w http.ResponseWriter, r *http.Request, code int, reason string) { if strings.Contains(r.UserAgent(), "curl") || strings.Contains(r.UserAgent(), "Wget") { http.Error(w, reason, code)