issue 48 weed upload does not set the modified date

This commit is contained in:
Chris Lu 2013-10-16 08:39:09 -07:00
parent 030905714b
commit 59ded34b83

View file

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