Skip to content

Commit 937c1a3

Browse files
kimmellrRobert Kimmell
authored and
Robert Kimmell
committed
Added headers parameter to network.fetch call
1 parent a40bb11 commit 937c1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_pyportal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def fetch(self, refresh_url=None, timeout=10):
303303
if refresh_url:
304304
self.url = refresh_url
305305

306-
response = self.network.fetch(self.url, timeout=timeout)
306+
response = self.network.fetch(self.url, headers=self._headers, timeout=timeout)
307307

308308
json_out = None
309309
content_type = self.network.check_response(response)

0 commit comments

Comments
 (0)