Adding unit tests for volume ttl.

This commit is contained in:
Chris Lu
2014-09-20 20:51:24 -07:00
parent f7094d7a99
commit 7920b4685e
3 changed files with 63 additions and 15 deletions

View File

@@ -118,7 +118,7 @@ func NewNeedle(r *http.Request, fixJpgOrientation bool) (n *Needle, e error) {
n.LastModified = uint64(time.Now().Unix())
}
n.SetHasLastModifiedDate()
if n.Ttl != nil {
if n.Ttl != EMPTY_TTL {
n.SetHasTtl()
}