From c42a842a2eb7ff1f3144860c716b4b7e98d03c11 Mon Sep 17 00:00:00 2001 From: Johannes Drummer Date: Sat, 24 Aug 2024 18:29:10 +0200 Subject: [PATCH] fix: broken mutlipart processor on windows --- internal/bodyprocessors/multipart.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/bodyprocessors/multipart.go b/internal/bodyprocessors/multipart.go index 5e7cb5548..ded38b2b1 100644 --- a/internal/bodyprocessors/multipart.go +++ b/internal/bodyprocessors/multipart.go @@ -65,6 +65,7 @@ func (mbp *multipartBodyProcessor) ProcessRequest(reader io.Reader, v plugintype v.MultipartStrictError().(*collections.Single).Set("1") return err } + defer temp.Close() sz, err := io.Copy(temp, p) if err != nil { v.MultipartStrictError().(*collections.Single).Set("1")