internal: add ETag

This commit is contained in:
Simon Ser
2020-02-03 21:48:31 +01:00
parent ca51e9427a
commit 25678476db
6 changed files with 26 additions and 23 deletions

View File

@@ -372,7 +372,7 @@ func (b *backend) propfindAddressObject(propfind *internal.Propfind, ao *Address
if ao.ETag != "" {
props[internal.GetETagName] = func(*internal.RawXMLValue) (interface{}, error) {
return &internal.GetETag{ETag: fmt.Sprintf("%q", ao.ETag)}, nil
return &internal.GetETag{ETag: internal.ETag(ao.ETag)}, nil
}
}