From c5c5208662b38bd273a4c8f2475fd9f7d5cd0ad2 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sun, 19 Oct 2014 18:26:55 +0200 Subject: [PATCH] Bugfix: http storage: Actually respect useragent --- vdirsyncer/storage/http.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vdirsyncer/storage/http.py b/vdirsyncer/storage/http.py index 37330c9..b09676e 100644 --- a/vdirsyncer/storage/http.py +++ b/vdirsyncer/storage/http.py @@ -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):