Commit 66debd91 authored by Elad's avatar Elad Committed by Anton Evangelatov

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

parent 75060ef9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment