swarm/api/http: remove ModTime=now for direct and multipart uploads (#17945)

This commit is contained in:
Elad 2018-10-19 16:02:44 +02:00 committed by Anton Evangelatov
parent 75060ef96e
commit 66debd91d9
1 changed files with 0 additions and 2 deletions

View File

@ -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