From 5a981f032771c83db5c25a9d327c05d1d954820e Mon Sep 17 00:00:00 2001 From: Nico Vergauwen Date: Tue, 9 Oct 2018 15:07:02 +0200 Subject: [PATCH] handleDirectUpload remove ModTime Delete ModTime field in manifest when using direct file upload so that the same upload always results in the same manifest, not only the same hash inside the manifest. --- swarm/api/http/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/swarm/api/http/server.go b/swarm/api/http/server.go index 370aca5a75..d48fd019df 100644 --- a/swarm/api/http/server.go +++ b/swarm/api/http/server.go @@ -427,8 +427,7 @@ func (s *Server) handleDirectUpload(r *http.Request, mw *api.ManifestWriter) err Path: GetURI(r.Context()).Path, ContentType: r.Header.Get("Content-Type"), Mode: 0644, - Size: r.ContentLength, - ModTime: time.Now(), + Size: r.ContentLength }) if err != nil { return err