mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
DAV: Remove check when fetching etags after PUT
Servers may automatically modify the item in unforeseeable ways. Fix #251
This commit is contained in:
parent
fce0f8d74a
commit
2e83354c06
1 changed files with 0 additions and 10 deletions
|
|
@ -476,16 +476,6 @@ class DavStorage(Storage):
|
|||
dav_logger.debug('Server did not send etag, fetching {!r}'
|
||||
.format(href))
|
||||
item2, etag = self.get(href)
|
||||
|
||||
# We don't have the old etag, but we can sloppily compare item
|
||||
# contents to see if the values changed.
|
||||
if item2.hash != item.hash:
|
||||
dav_logger.debug('Old content: {!r}'.format(item.raw))
|
||||
dav_logger.debug('New content: {!r}'.format(item2.raw))
|
||||
raise exceptions.WrongEtagError(
|
||||
'While requesting the etag for {!r}, '
|
||||
'the item content changed.'.format(href)
|
||||
)
|
||||
return href, etag
|
||||
|
||||
def update(self, href, item, etag):
|
||||
|
|
|
|||
Loading…
Reference in a new issue