Skip to content
Snippets Groups Projects
Commit 5619fa4e authored by Bruce Flynn's avatar Bruce Flynn
Browse files

explicitly close body

parent e14eedfd
Branches master
Tags 0.1.1
No related merge requests found
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment