diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go index 05f81e1..e3b9c9e 100644 --- a/internal/handlers/handlers.go +++ b/internal/handlers/handlers.go @@ -182,5 +182,9 @@ func (h *UploadHandlers) Download(w http.ResponseWriter, r *http.Request) { func (h *UploadHandlers) 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, "deleted") + } }