1
0

Removed missed w.WriteHeader().

This commit is contained in:
Alexander Andreev 2023-05-24 23:52:33 +04:00
parent fb9cee2c0a
commit 64132ec18f
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -74,7 +74,6 @@ func (h *UploadHandlers) Upload(w http.ResponseWriter, r *http.Request) {
f, fHandler, err := r.FormFile("file")
if err != nil {
log.Println("failed to open incoming file:", err)
w.WriteHeader(http.StatusInternalServerError)
Error(w, r, http.StatusInternalServerError, "Error reading an incoming file.")
return
}