mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-04 18:22:26 +00:00
Include properties in collection etag
This commit is contained in:
parent
a26d90d8d7
commit
71916452ec
1 changed files with 1 additions and 0 deletions
|
@ -459,6 +459,7 @@ class BaseCollection:
|
||||||
etag = md5()
|
etag = md5()
|
||||||
for item in self.get_all():
|
for item in self.get_all():
|
||||||
etag.update((item.href + "/" + item.etag).encode("utf-8"))
|
etag.update((item.href + "/" + item.etag).encode("utf-8"))
|
||||||
|
etag.update(json.dumps(self.get_meta(), sort_keys=True).encode())
|
||||||
return '"%s"' % etag.hexdigest()
|
return '"%s"' % etag.hexdigest()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue