mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-24 18:13:35 +08:00
issue 48 weed upload does not set the modified date
This commit is contained in:
@@ -111,8 +111,8 @@ func NewNeedle(r *http.Request) (n *Needle, e error) {
|
|||||||
}
|
}
|
||||||
if n.LastModified == 0 {
|
if n.LastModified == 0 {
|
||||||
n.LastModified = uint64(time.Now().Unix())
|
n.LastModified = uint64(time.Now().Unix())
|
||||||
n.SetHasLastModifiedDate()
|
|
||||||
}
|
}
|
||||||
|
n.SetHasLastModifiedDate()
|
||||||
|
|
||||||
n.Checksum = NewCRC(n.Data)
|
n.Checksum = NewCRC(n.Data)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user