Commit 5619fa4e authored by Bruce Flynn's avatar Bruce Flynn
Browse files

explicitly close body

parent e14eedfd
Pipeline #35418 failed with stage
......@@ -63,6 +63,7 @@ func createUploadHandler(dir string) http.HandlerFunc {
return
}
defer f.Close()
defer r.Body.Close()
if _, err := io.Copy(f, r.Body); err != nil {
httpFail(w, r, "Could not complete upload", err)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment