mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-15 12:25:52 +00:00
Fix up urlencoding of remotestorage
This commit is contained in:
parent
b828685386
commit
51abf452a1
1 changed files with 1 additions and 4 deletions
|
|
@ -204,8 +204,6 @@ class RemoteStorage(Storage):
|
|||
data=item.raw.encode('utf-8'),
|
||||
headers=headers
|
||||
)
|
||||
if not response.url.endswith('/' + href):
|
||||
raise exceptions.InvalidResponse('spec doesn\'t allow redirects')
|
||||
return href, response.headers['etag']
|
||||
|
||||
def update(self, href, item, etag):
|
||||
|
|
@ -214,8 +212,7 @@ class RemoteStorage(Storage):
|
|||
return etag
|
||||
|
||||
def upload(self, item):
|
||||
href = utils.generate_href(item.ident)
|
||||
href = utils.compat.urlquote(href, '@') + self.fileext
|
||||
href = utils.generate_href(item.ident) + self.fileext
|
||||
return self._put(href, item, None)
|
||||
|
||||
def delete(self, href, etag):
|
||||
|
|
|
|||
Loading…
Reference in a new issue