mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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*
|
*yet to be released*
|
||||||
|
|
||||||
|
- Vdirsyncer now respects redirects when uploading and updating items. This
|
||||||
|
might fix issues with Zimbra.
|
||||||
|
|
||||||
Version 0.4.1
|
Version 0.4.1
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -427,6 +427,7 @@ class DavStorage(Storage):
|
||||||
headers=headers
|
headers=headers
|
||||||
)
|
)
|
||||||
etag = response.headers.get('etag', None)
|
etag = response.headers.get('etag', None)
|
||||||
|
href = self._normalize_href(response.url)
|
||||||
if not etag:
|
if not etag:
|
||||||
item2, etag = self.get(href)
|
item2, etag = self.get(href)
|
||||||
assert item2.uid == item.uid
|
assert item2.uid == item.uid
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue