From 26ffd619a6af60db1c93ea5cf978eaa865b97b00 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 19 Sep 2018 23:45:52 +1000 Subject: [PATCH] add missing headers in get calls --- anki/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sync.py b/anki/sync.py index df1cc7e65..e3e33a875 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -440,7 +440,7 @@ class AnkiRequestsClient: if headers is None: headers = {} headers['User-Agent'] = self._agentName() - return self.session.get(url, stream=True, timeout=60, verify=self.verify) + return self.session.get(url, stream=True, headers=headers, timeout=60, verify=self.verify) def streamContent(self, resp): resp.raise_for_status()