Handle matching updateats for post list etag (#5435)

This commit is contained in:
Joram Wilander
2017-02-15 18:55:47 -05:00
committed by GitHub
parent 1d6ea40022
commit 727d067fce
+3
View File
@@ -72,6 +72,9 @@ func (o *PostList) Etag() string {
if v.UpdateAt > t {
t = v.UpdateAt
id = v.Id
} else if v.UpdateAt == t && v.Id > id {
t = v.UpdateAt
id = v.Id
}
}