diff options
author | Elad <theman@elad.im> | 2018-10-19 22:02:44 +0800 |
---|---|---|
committer | Anton Evangelatov <anton.evangelatov@gmail.com> | 2018-10-19 22:02:44 +0800 |
commit | 66debd91d9268067000c061093a674ce34f18d48 (patch) | |
tree | 86ebb80984ec1dd48c8fd8c0fa339623ccb69083 /swarm/api/http/server.go | |
parent | 75060ef96ec38b0c6ca4dba4f4543e594025507f (diff) | |
download | dexon-66debd91d9268067000c061093a674ce34f18d48.tar dexon-66debd91d9268067000c061093a674ce34f18d48.tar.gz dexon-66debd91d9268067000c061093a674ce34f18d48.tar.bz2 dexon-66debd91d9268067000c061093a674ce34f18d48.tar.lz dexon-66debd91d9268067000c061093a674ce34f18d48.tar.xz dexon-66debd91d9268067000c061093a674ce34f18d48.tar.zst dexon-66debd91d9268067000c061093a674ce34f18d48.zip |
swarm/api/http: remove ModTime=now for direct and multipart uploads (#17945)
Diffstat (limited to 'swarm/api/http/server.go')
-rw-r--r-- | swarm/api/http/server.go | 2 |
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 |