Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
omerzi committed Apr 9, 2024
1 parent 7dac743 commit 72c8655
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http/filestream/filestream.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 72c8655

Please sign in to comment.