From 46e0ad988b92ddba5e4e351e9fc60faaf301c4b0 Mon Sep 17 00:00:00 2001 From: celogeek Date: Sun, 8 May 2022 17:04:08 +0200 Subject: [PATCH] remove body close --- internal/photos/api/file.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/photos/api/file.go b/internal/photos/api/file.go index c7fa392..def5110 100644 --- a/internal/photos/api/file.go +++ b/internal/photos/api/file.go @@ -156,7 +156,6 @@ func (s *Service) FileCreateChunk(c *gin.Context) { b := bytes.NewBuffer([]byte{}) io.Copy(b, c.Request.Body) - c.Request.Body.Close() sess := s.CurrentSession(c)