1
0
Fork 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
1 changed files with 0 additions and 1 deletions

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
}