From 66debd91d9268067000c061093a674ce34f18d48 Mon Sep 17 00:00:00 2001 From: Elad Date: Fri, 19 Oct 2018 16:02:44 +0200 Subject: [PATCH] swarm/api/http: remove ModTime=now for direct and multipart uploads (#17945) --- swarm/api/http/server.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/swarm/api/http/server.go b/swarm/api/http/server.go index 370aca5a7..b4294b058 100644 --- a/swarm/api/http/server.go +++ b/swarm/api/http/server.go @@ -409,7 +409,6 @@ func (s *Server) handleMultipartUpload(r *http.Request, boundary string, mw *api Path: path, ContentType: part.Header.Get("Content-Type"), Size: size, - ModTime: time.Now(), } log.Debug("adding path to new manifest", "ruid", ruid, "bytes", entry.Size, "path", entry.Path) contentKey, err := mw.AddEntry(r.Context(), reader, entry) @@ -428,7 +427,6 @@ func (s *Server) handleDirectUpload(r *http.Request, mw *api.ManifestWriter) err ContentType: r.Header.Get("Content-Type"), Mode: 0644, Size: r.ContentLength, - ModTime: time.Now(), }) if err != nil { return err