mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
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:
parent
da290e9707
commit
5a981f0327
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue