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.
This commit is contained in:
Nico Vergauwen 2018-10-09 15:07:02 +02:00 committed by GitHub
parent da290e9707
commit 5a981f0327
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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