Moved WriteHeader to nospace.jade.
This commit is contained in:
parent
64132ec18f
commit
f8351b935d
@ -86,7 +86,6 @@ func (h *UploadHandlers) Upload(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
if leftSpace < fHandler.Size {
|
||||
log.Println("not enough space left in storage, only", leftSpace>>20, "MiB left")
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
web.ErrorNoSpace(utils.MainSite(r.Host), w)
|
||||
}
|
||||
|
||||
|
@ -15,5 +15,6 @@ block header
|
||||
h1 :(
|
||||
|
||||
block body
|
||||
- wr.(http.ResponseWriter).WriteHeader(http.StatusInternalServerError)
|
||||
section#error
|
||||
h1 Not enough space left
|
||||
|
Loading…
Reference in New Issue
Block a user