This commit is contained in:
Andrea Spacca
2019-03-18 19:09:22 +01:00
parent 2d5c256642
commit 5310566b81
2 changed files with 9 additions and 8 deletions

View File

@ -390,6 +390,8 @@ func (s *Server) putHandler(w http.ResponseWriter, r *http.Request) {
reader = r.Body
defer r.Body.Close()
if contentLength == -1 {
// queue file to disk, because s3 needs content length
var err error