From 72c8655934fa6f065a706b4db49542e7a6b369b1 Mon Sep 17 00:00:00 2001 From: Omer Zidkoni Date: Tue, 9 Apr 2024 14:49:59 +0300 Subject: [PATCH] CR --- http/filestream/filestream.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http/filestream/filestream.go b/http/filestream/filestream.go index 8afc881..f063998 100644 --- a/http/filestream/filestream.go +++ b/http/filestream/filestream.go @@ -63,6 +63,8 @@ type FileInfo struct { } func WriteFilesToStream(multipartWriter *multipart.Writer, filesList []*FileInfo) (err error) { + // Close finishes the multipart message and writes the trailing + // boundary end line to the output, thereby marking the EOF. defer ioutils.Close(multipartWriter, &err) for _, file := range filesList { if err = writeFile(multipartWriter, file); err != nil {