aboutsummaryrefslogtreecommitdiffstats
path: root/swarm
diff options
context:
space:
mode:
authorElad <theman@elad.im>2018-10-19 22:02:44 +0800
committerAnton Evangelatov <anton.evangelatov@gmail.com>2018-10-19 22:02:44 +0800
commit66debd91d9268067000c061093a674ce34f18d48 (patch)
tree86ebb80984ec1dd48c8fd8c0fa339623ccb69083 /swarm
parent75060ef96ec38b0c6ca4dba4f4543e594025507f (diff)
downloaddexon-66debd91d9268067000c061093a674ce34f18d48.tar.gz
dexon-66debd91d9268067000c061093a674ce34f18d48.tar.zst
dexon-66debd91d9268067000c061093a674ce34f18d48.zip
swarm/api/http: remove ModTime=now for direct and multipart uploads (#17945)
Diffstat (limited to 'swarm')
-rw-r--r--swarm/api/http/server.go2
1 files changed, 0 insertions, 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