Removed missed w.WriteHeader().
This commit is contained in:
parent
fb9cee2c0a
commit
64132ec18f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user