1
0

Moved WriteHeader to nospace.jade.

This commit is contained in:
Alexander Andreev 2023-05-24 23:56:12 +04:00
parent 64132ec18f
commit f8351b935d
Signed by: Arav
GPG Key ID: D22A817D95815393
2 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,6 @@ func (h *UploadHandlers) Upload(w http.ResponseWriter, r *http.Request) {
if leftSpace < fHandler.Size { if leftSpace < fHandler.Size {
log.Println("not enough space left in storage, only", leftSpace>>20, "MiB left") log.Println("not enough space left in storage, only", leftSpace>>20, "MiB left")
w.WriteHeader(http.StatusInternalServerError)
web.ErrorNoSpace(utils.MainSite(r.Host), w) web.ErrorNoSpace(utils.MainSite(r.Host), w)
} }

View File

@ -15,5 +15,6 @@ block header
h1 :( h1 :(
block body block body
- wr.(http.ResponseWriter).WriteHeader(http.StatusInternalServerError)
section#error section#error
h1 Not enough space left h1 Not enough space left