mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-02 10:15:50 +00:00
Bugfix: http storage: Actually respect useragent
This commit is contained in:
parent
5a26721905
commit
c5c5208662
1 changed files with 2 additions and 1 deletions
|
|
@ -108,7 +108,8 @@ class HttpStorage(Storage):
|
|||
return {'User-Agent': self.useragent}
|
||||
|
||||
def list(self):
|
||||
r = request('GET', self.url, **self._settings)
|
||||
r = request('GET', self.url, **self._settings,
|
||||
headers=self._default_headers())
|
||||
self._items = {}
|
||||
|
||||
for item in split_collection(r.text):
|
||||
|
|
|
|||
Loading…
Reference in a new issue