mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-18 12:55:52 +00:00
Follow redirects on PUT
Inspired by https://github.com/bitfireAT/davdroid/issues/414
This commit is contained in:
parent
c2750e025e
commit
e6a5fbfb42
2 changed files with 4 additions and 0 deletions
|
|
@ -14,6 +14,9 @@ Version 0.4.2
|
|||
|
||||
*yet to be released*
|
||||
|
||||
- Vdirsyncer now respects redirects when uploading and updating items. This
|
||||
might fix issues with Zimbra.
|
||||
|
||||
Version 0.4.1
|
||||
=============
|
||||
|
||||
|
|
|
|||
|
|
@ -427,6 +427,7 @@ class DavStorage(Storage):
|
|||
headers=headers
|
||||
)
|
||||
etag = response.headers.get('etag', None)
|
||||
href = self._normalize_href(response.url)
|
||||
if not etag:
|
||||
item2, etag = self.get(href)
|
||||
assert item2.uid == item.uid
|
||||
|
|
|
|||
Loading…
Reference in a new issue