Browse Source

issue 48 weed upload does not set the modified date

pull/2/head
Chris Lu 11 years ago
parent
commit
59ded34b83
  1. 2
      go/storage/needle.go

2
go/storage/needle.go

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

Loading…
Cancel
Save