adafruit / Adafruit_CircuitPython_PyPortal

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

Added headers parameter to network.fetch call #107

Closed kimmellr closed 3 years ago

kimmellr commented 3 years ago

The header parameter was not being passed to the network.fetch call. This broke any request that required a authentication header to retrieve data (i.e. Twitter)

I added headers=self._headers to the network.fetch call and tested with the Twitter API.

makermelissa commented 3 years ago

It looks like the same issue exists in the Blinka_PyPortal repo, which I can add.