mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-26 14:47:44 +00:00
Remove leftover assertion
This commit is contained in:
parent
24b492c610
commit
5ebc9eaecb
1 changed files with 0 additions and 2 deletions
|
|
@ -352,7 +352,6 @@ class DavStorage(Storage):
|
||||||
if etag is None:
|
if etag is None:
|
||||||
headers['If-None-Match'] = '*'
|
headers['If-None-Match'] = '*'
|
||||||
else:
|
else:
|
||||||
assert etag[0] == etag[-1] == '"'
|
|
||||||
headers['If-Match'] = etag
|
headers['If-Match'] = etag
|
||||||
|
|
||||||
response = self.session.request(
|
response = self.session.request(
|
||||||
|
|
@ -381,7 +380,6 @@ class DavStorage(Storage):
|
||||||
def delete(self, href, etag):
|
def delete(self, href, etag):
|
||||||
href = self._normalize_href(href)
|
href = self._normalize_href(href)
|
||||||
headers = self.session.get_default_headers()
|
headers = self.session.get_default_headers()
|
||||||
assert etag[0] == etag[-1] == '"'
|
|
||||||
headers.update({
|
headers.update({
|
||||||
'If-Match': etag
|
'If-Match': etag
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue