adafruit / Adafruit_CircuitPython_PyPortal

CircuitPython driver for Adafruit PyPortal.
MIT License
46 stars 57 forks source link

Header is not sent in request #106

Closed kimmellr closed 3 years ago

kimmellr commented 3 years ago

I was following the Twitter guide on adafruit (https://learn.adafruit.com/twitter-api-use/pyportal-circuitpython-setup) and could not get a response.

It looks like the header is never passed to the network.fetch function.

Modifying fetch request in the the adafruit_pyportal__init__.py file to this resolved the issue.

response = self.network.fetch(self.url, headers=self._headers, timeout=timeout)

ladyada commented 3 years ago

thanks, can you submit a PR? :)

kimmellr commented 3 years ago

I'll look up how to do that!

makermelissa commented 3 years ago

Fixed by #107