diff --git a/internal/http/handlers.go b/internal/http/handlers.go index c636971..6171a0c 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -50,7 +50,7 @@ func (h *FilesHandlers) Index(w http.ResponseWriter, r *http.Request) { func (h *FilesHandlers) File(w http.ResponseWriter, r *http.Request) { if h.noFileHandling { - w.WriteHeader(http.StatusServiceUnavailable) + Error(w, http.StatusServiceUnavailable, "File handling is turned off.", "", r.Referer()) return } r.URL.Path = httpr.Param(r, "filepath")